use pixelWidth/Height to initialize backing texture

This commit is contained in:
codeanticode
2015-10-21 09:10:04 -04:00
parent d35035d371
commit e644e13851
@@ -6456,7 +6456,7 @@ public class PGraphicsOpenGL extends PGraphics {
if (img.parent == null) {
img.parent = parent;
}
Texture tex = new Texture(this, img.width, img.height, params);
Texture tex = new Texture(this, img.pixelWidth, img.pixelHeight, params);
setCache(img, tex);
return tex;
}