10000 Method references aren't proxied properly. · Issue #35 · LWJGLX/debug · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
Method references aren't proxied properly. #35
Open
@liskar-dev

Description

@liskar-dev

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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0