mirror of
https://github.com/processing/processing4.git
synced 2026-02-04 14:19:19 +01:00
Fix issue 1166
This commit is contained in:
@@ -287,6 +287,11 @@ public class Texture implements PConstants {
|
||||
return;
|
||||
}
|
||||
|
||||
if (pixels.length == 0) {
|
||||
// Nothing to do (means that w == h == 0) but not an erroneous situation
|
||||
return;
|
||||
}
|
||||
|
||||
boolean enabledTex = false;
|
||||
if (!pgl.texturingIsEnabled(glTarget)) {
|
||||
pgl.enableTexturing(glTarget);
|
||||
|
||||
Reference in New Issue
Block a user