Open
Description
Sample code, tested on OpenJDK 17:
Supplier<Integer> func = GL30C::glGenVertexArrays;
glBindVertexArray(func.get());
glDisableVertexAttribArray(0);
will crash with
java.lang.NullPointerException: Cannot read field "enabledVertexArrays" because "org.lwjglx.debug.org.lwjgl.opengl.Context.currentContext().currentVao" is null
at org.lwjglx.debug.org.lwjgl.opengl.GL20.glDisableVertexAttribArray(GL20.java:47)
at org.lwjglx.debug.$Proxy$1.glDisableVertexAttribArray3(Unknown Source)
...suggesting that method reference to glGenVertexArrays didn't go through a proxy object
Metadata
Metadata
Assignees
Labels
No labels