diff --git a/core/src/processing/opengl/PGraphicsOpenGL.java b/core/src/processing/opengl/PGraphicsOpenGL.java index 64c170472..1640497ad 100644 --- a/core/src/processing/opengl/PGraphicsOpenGL.java +++ b/core/src/processing/opengl/PGraphicsOpenGL.java @@ -899,8 +899,8 @@ public class PGraphicsOpenGL extends PGraphics { @Override public boolean equals(Object obj) { - GLResourceTexture other = (GLResourceTexture)obj; - return other.glName == glId && + GLResourceVertexBuffer other = (GLResourceVertexBuffer)obj; + return other.glId == glId && other.context == context; }