mirror of
https://github.com/processing/processing4.git
synced 2026-02-03 21:59:20 +01:00
fixes loadPixels() regression in opengl renderer
This commit is contained in:
@@ -329,8 +329,7 @@ public class Texture implements PConstants {
|
||||
return;
|
||||
}
|
||||
|
||||
if (pixels.length == 0) {
|
||||
// Nothing to do (means that w == h == 0) but not an erroneous situation
|
||||
if (pixels.length == 0 || w == 0 || h == 0) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user