From fcd2e10fa736a9ca3a39aa8b35f6964339b50548 Mon Sep 17 00:00:00 2001 From: Jakub Valtar Date: Wed, 29 Jul 2015 16:32:43 -0400 Subject: [PATCH] Fix ClassCastException in GLResourceVertexBuffer equals --- core/src/processing/opengl/PGraphicsOpenGL.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; }