Skip to content

Commit 6ede130

Browse files
committed
don't call enable(target)/disable(target)
1 parent ec55d20 commit 6ede130

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

core/src/processing/opengl/PGL.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -800,7 +800,6 @@ protected boolean contextIsCurrent(int other) {
800800

801801

802802
protected void enableTexturing(int target) {
803-
enable(target);
804803
if (target == TEXTURE_2D) {
805804
texturingTargets[0] = true;
806805
} else if (target == TEXTURE_RECTANGLE) {
@@ -810,7 +809,6 @@ protected void enableTexturing(int target) {
810809

811810

812811
protected void disableTexturing(int target) {
813-
disable(target);
814812
if (target == TEXTURE_2D) {
815813
texturingTargets[0] = false;
816814
} else if (target == TEXTURE_RECTANGLE) {

0 commit comments

Comments
 (0)