mirror of
https://github.com/processing/processing4.git
synced 2026-02-20 22:05:39 +01:00
small fix when setting sampling uniform
This commit is contained in:
@@ -580,10 +580,10 @@ public class PShader {
|
||||
PImage img = (PImage)val.value;
|
||||
Texture tex = pgMain.getTexture(img);
|
||||
pgl.glUniform1i(loc, texUnit);
|
||||
if (textures == null) {
|
||||
if (textures == null) {
|
||||
textures = new HashMap<Integer, Texture>();
|
||||
textures.put(texUnit, tex);
|
||||
}
|
||||
}
|
||||
textures.put(texUnit, tex);
|
||||
texUnit++;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user