Skip to content

Commit 1ac5068

Browse files
committed
Enabling textures rubs OpenGL the wrong way
This is was deprecated with fixed-function pipeline
1 parent 27ae022 commit 1ac5068

1 file changed

Lines changed: 0 additions & 2 deletions

File tree

core/src/processing/opengl/PJOGL.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1174,7 +1174,6 @@ public void keyTyped(com.jogamp.newt.event.KeyEvent e) {
11741174

11751175
@Override
11761176
protected void enableTexturing(int target) {
1177-
if (profile == 2) enable(target);
11781177
if (target == TEXTURE_2D) {
11791178
texturingTargets[0] = true;
11801179
} else if (target == TEXTURE_RECTANGLE) {
@@ -1185,7 +1184,6 @@ protected void enableTexturing(int target) {
11851184

11861185
@Override
11871186
protected void disableTexturing(int target) {
1188-
if (profile == 2) disable(target);
11891187
if (target == TEXTURE_2D) {
11901188
texturingTargets[0] = false;
11911189
} else if (target == TEXTURE_RECTANGLE) {

0 commit comments

Comments
 (0)