From 69139a1e9593f234bd32f7f00a27645d64c80b2c Mon Sep 17 00:00:00 2001 From: Kirill Vainer Date: Sat, 9 Sep 2017 13:07:52 -0400 Subject: [PATCH] Support instancing in GLTracer --- .../src/main/java/com/jme3/renderer/opengl/GLTracer.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/jme3-core/src/main/java/com/jme3/renderer/opengl/GLTracer.java b/jme3-core/src/main/java/com/jme3/renderer/opengl/GLTracer.java index 82d16910a..003b97bef 100644 --- a/jme3-core/src/main/java/com/jme3/renderer/opengl/GLTracer.java +++ b/jme3-core/src/main/java/com/jme3/renderer/opengl/GLTracer.java @@ -99,6 +99,7 @@ public final class GLTracer implements InvocationHandler { noEnumArgs("glEnableVertexAttribArray", 0); noEnumArgs("glDisableVertexAttribArray", 0); noEnumArgs("glVertexAttribPointer", 0, 1, 4, 5); + noEnumArgs("glVertexAttribDivisorARB", 0, 1); noEnumArgs("glDrawRangeElements", 1, 2, 3, 5); noEnumArgs("glDrawArrays", 1, 2); noEnumArgs("glDeleteBuffers", 0); @@ -302,7 +303,8 @@ public final class GLTracer implements InvocationHandler { // will be printed in darker color methodName = methodName.substring(2); if (methodName.equals("Clear") - || methodName.equals("DrawRangeElements")) { + || methodName.equals("DrawRangeElements") + || methodName.equals("DrawElementsInstancedARB")) { print(methodName); } else { if (methodName.endsWith("EXT")) {