-
Notifications
You must be signed in to change notification settings - Fork 106
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
GL_ARB_bindless_texture Object reference not set #168
Comments
The method is simply is (as almost all public methods relative to GL calls) a wrapper for a function pointer to the underlying OpenGL driver. If you get a NullReferenceException in these cases, it means that the driver is not offering a function pointer for that extension, for the current OpenGL context. This mean that different OpenGL context may return a different set of function pointers. I bet that setting up a compatibility profile for the OpenGL context don"t allow you to use bindless textures. Try to initialize a core profile instead. |
I want to use bindless textures but any attempt at calling a bindless_texture method results in this error and then just crashes the program:
Unhandled exception. System.NullReferenceException: Object reference not set to an instance of an object. at OpenGL.Gl.GetTextureHandleARB(UInt32 texture)
I cant find any reason as to why this happens since my extensions does include the GL_ARB_bindless_texture.
code i used:
GLFW initialization settings:
my question is, is this method implemented? am i missing something?
The text was updated successfully, but these errors were encountered: