mirror of
https://github.com/processing/processing4.git
synced 2026-06-16 04:26:26 +02:00
use pixelWidth/Height to initialize backing texture
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user