mirror of
https://github.com/processing/processing4.git
synced 2026-02-03 05:39:18 +01:00
Fixes issue #1771
This commit is contained in:
@@ -4124,13 +4124,7 @@ public class PShapeOpenGL extends PShape {
|
||||
|
||||
|
||||
protected void renderPolys(PGraphicsOpenGL g, PImage textureImage) {
|
||||
Texture tex = null;
|
||||
if (textureImage != null) {
|
||||
tex = g.getTexture(textureImage);
|
||||
if (tex != null) {
|
||||
tex.bind();
|
||||
}
|
||||
}
|
||||
Texture tex = textureImage != null ? g.getTexture(textureImage) : null;
|
||||
|
||||
boolean renderingFill = false, renderingStroke = false;
|
||||
BaseShader shader = null;
|
||||
@@ -4207,10 +4201,6 @@ public class PShapeOpenGL extends PShape {
|
||||
if (shader != null && shader.bound()) {
|
||||
shader.unbind();
|
||||
}
|
||||
|
||||
if (tex != null) {
|
||||
tex.unbind();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user