mirror of
https://github.com/processing/processing4.git
synced 2026-04-19 02:39:23 +02:00
Fixed issue 623
This commit is contained in:
@@ -6367,7 +6367,9 @@ public class PGraphicsAndroid3D extends PGraphics {
|
||||
img.setParams(a3d, params);
|
||||
}
|
||||
PTexture tex = new PTexture(img.parent, img.width, img.height, params);
|
||||
img.loadPixels();
|
||||
if (img.pixels == null) {
|
||||
img.loadPixels();
|
||||
}
|
||||
tex.set(img.pixels);
|
||||
img.setCache(a3d, tex);
|
||||
return tex;
|
||||
|
||||
Reference in New Issue
Block a user