mirror of
https://github.com/processing/processing4.git
synced 2026-02-04 06:09:17 +01:00
Enabling textures rubs OpenGL the wrong way
This is was deprecated with fixed-function pipeline
This commit is contained in:
@@ -1174,7 +1174,6 @@ public class PJOGL extends PGL {
|
||||
|
||||
@Override
|
||||
protected void enableTexturing(int target) {
|
||||
if (profile == 2) enable(target);
|
||||
if (target == TEXTURE_2D) {
|
||||
texturingTargets[0] = true;
|
||||
} else if (target == TEXTURE_RECTANGLE) {
|
||||
@@ -1185,7 +1184,6 @@ public class PJOGL extends PGL {
|
||||
|
||||
@Override
|
||||
protected void disableTexturing(int target) {
|
||||
if (profile == 2) disable(target);
|
||||
if (target == TEXTURE_2D) {
|
||||
texturingTargets[0] = false;
|
||||
} else if (target == TEXTURE_RECTANGLE) {
|
||||
|
||||
Reference in New Issue
Block a user