From e644e1385182f57a74f1805d8e944b60d8e0e910 Mon Sep 17 00:00:00 2001 From: codeanticode Date: Wed, 21 Oct 2015 09:10:04 -0400 Subject: [PATCH] use pixelWidth/Height to initialize backing texture --- core/src/processing/opengl/PGraphicsOpenGL.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/processing/opengl/PGraphicsOpenGL.java b/core/src/processing/opengl/PGraphicsOpenGL.java index 837e8e80d..51390be8d 100644 --- a/core/src/processing/opengl/PGraphicsOpenGL.java +++ b/core/src/processing/opengl/PGraphicsOpenGL.java @@ -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; }