mirror of
https://github.com/processing/processing4.git
synced 2026-06-16 04:26:26 +02:00
Fixed issue 624 on android
This commit is contained in:
@@ -5677,11 +5677,13 @@ public class PGraphicsAndroid3D extends PGraphics {
|
||||
this.setCache(a3d, texture);
|
||||
this.setParams(a3d, params);
|
||||
|
||||
// The texture crop should also take into account
|
||||
// the Y inversion, this is why using hight and -height.
|
||||
texCrop = new int[4];
|
||||
texCrop[0] = 0;
|
||||
texCrop[1] = 0;
|
||||
texCrop[1] = height;
|
||||
texCrop[2] = width;
|
||||
texCrop[3] = height;
|
||||
texCrop[3] = -height;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user