We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e5899ff commit 81d5ca6Copy full SHA for 81d5ca6
jme3-core/src/main/java/com/jme3/renderer/opengl/GLRenderer.java
@@ -2852,7 +2852,8 @@ public void clearVertexAttribs() {
2852
for (int i = 0; i < attribList.oldLen; i++) {
2853
int idx = attribList.oldList[i];
2854
gl.glDisableVertexAttribArray(idx);
2855
- if (context.boundAttribs[idx].get().isInstanced()) {
+ VertexBuffer buffer = context.boundAttribs[idx].get();
2856
+ if (buffer != null && buffer.isInstanced()) {
2857
glext.glVertexAttribDivisorARB(idx, 0);
2858
}
2859
context.boundAttribs[idx] = null;
0 commit comments