Fix ClassCastException in GLResourceVertexBuffer equals

This commit is contained in:
Jakub Valtar
2015-07-29 16:32:43 -04:00
parent 8fe5820409
commit fcd2e10fa7

View File

@@ -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;
}