Opengl loaded but ktxTexture_GLUpload fails at glBindTexture #707
-
I'm using glad with glfw, and can call functions such as I looked over the source code, and it seems it's really calling gl.glBindTexture, but its implementation seems to be identical to what glad is already doing. Any ideas on what's going on? Both glad and ktx are compiled statically. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
For a variety of excellent reasons libktx loads the GL function pointers dynamically instead of linking to libgl. The It must have found an OpenGL module in your app otherwise you would have seen the message I do not know why it couldn't find glBindTexture. Are you building libktx yourself? If so, dId you make any changes? Is there a chance that the |
Beta Was this translation helpful? Give feedback.
-
Please do. I shall be happy to hear what you find out and happy to receive any PR or bug report. Note that |
Beta Was this translation helpful? Give feedback.
As it turned out this was a silly mistake on my part, as I wasn't passing
-lGL
to the compile flag. It was rather annoying that it did work without it everywhere else, which made me jump to the wrong conclusions.