mirror of
https://github.com/processing/processing4.git
synced 2026-02-04 06:09:17 +01:00
Texture.bind()/unbind() call the gl functions irrespective of the value of the bound flag
This commit is contained in:
@@ -556,20 +556,16 @@ public class Texture implements PConstants {
|
||||
|
||||
|
||||
public void bind() {
|
||||
if (!bound) {
|
||||
pgl.enableTexturing(glTarget);
|
||||
pgl.glBindTexture(glTarget, glName);
|
||||
bound = true;
|
||||
}
|
||||
pgl.enableTexturing(glTarget);
|
||||
pgl.glBindTexture(glTarget, glName);
|
||||
bound = true;
|
||||
}
|
||||
|
||||
|
||||
public void unbind() {
|
||||
if (bound) {
|
||||
pgl.enableTexturing(glTarget);
|
||||
pgl.glBindTexture(glTarget, 0);
|
||||
bound = false;
|
||||
}
|
||||
pgl.enableTexturing(glTarget);
|
||||
pgl.glBindTexture(glTarget, 0);
|
||||
bound = false;
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user