-
Notifications
You must be signed in to change notification settings - Fork 104
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
Usage of deprecated glGetString( GL_EXTENSIONS ) #8
Comments
I may be interested in implementing this. According to https://www.opengl.org/sdk/docs/man/html/glGetString.xhtml, For my own reference when I come back to this, the number of extensions can be queried with |
See kbranigan#8 for more info.
I wasn't able to find a cross-platform solution for this issue, but for anyone interested, I have a branch that works for Windows here: https://github.com/njcrawford/Simple-OpenGL-Image-Library/tree/issue-8-attempt2 With that said, I found that my applications were only calling SOIL_load_image_from_memory(), which is a direct pass-through to stbi_load_from_memory(). For my purposes it's far easier to include stb_image.h directly in my source than to update SOIL for OpenGL 3.0 compatibility, so I've stopped working on this issue. |
+1 for this issue. |
I've solved this issue by having SOIL depend on GLEW. Would that be an acceptable correction/dependency to submit? |
Sad to see this is still not fixed; took me some time to figure out what went wrong :/ |
Just out of curiosity, is anyone using any SOIL functions other than SOIL_load_image() or SOIL_load_image_from_memory()? |
@njcrawford I tried to use |
@stevenwdv It's a bit more work, but you can get about the same effect with code like this:
|
@njcrawford For now I already got it to work with lodepng (after some struggling with the order of |
2.use stb_image.h to load texture instead of SOIL.h Why? GL_EXTENSIONS has been deprecated as a paremeter to glGetString. All calls to glGetString( GL_EXTENSIONS ) fail under OpenGL 3+ with error GL_INVALID_ENUM. This breaks all query_x_capability functions... which breaks most of SOIL. Check kbranigan/Simple-OpenGL-Image-Library#8
http://stackoverflow.com/questions/17923782/simple-opengl-image-library-soil-uses-deprecated-functionality
https://www.opengl.org/sdk/docs/man3/xhtml/glGetString.xml
GL_EXTENSIONS
has been deprecated as a paremeter toglGetString
. All calls toglGetString( GL_EXTENSIONS )
fail under OpenGL 3+ with errorGL_INVALID_ENUM
. This breaks all query_x_capability functions... which breaks most of SOIL.Apparently, the correct approach is now to iterate over and compare each extension substring using
glGetStringi( GL_EXTENSIONS, i )
.The text was updated successfully, but these errors were encountered: