You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
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: