mirror of
https://github.com/processing/processing4.git
synced 2026-02-04 06:09:17 +01:00
Fix ClassCastException in GLResourceVertexBuffer equals
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user