Skip to content
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

Assert break in sokol_gfx init: Linux + glew 1.13 #63

Closed
septag opened this issue Jul 22, 2018 · 2 comments
Closed

Assert break in sokol_gfx init: Linux + glew 1.13 #63

septag opened this issue Jul 22, 2018 · 2 comments
Assignees

Comments

@septag
Copy link
Contributor

septag commented Jul 22, 2018

Hi
I'm on ubuntu with installed package glew 1.13.
I got assertion on the first _SG_GL_CHECK_ERROR(); in _sg_create_context function. because there was a pending GL error (GL_INVALID_ENUM)
It seems that the problem is with version 1.13 of glew documented here

So I had to reset the errors after glewInit. Is it ok if sokol_gfx clears errors on setup and throw a warning or something, in case if previous errors are raised by glew or similiar lib ?

@floooh
Copy link
Owner

floooh commented Jul 22, 2018

Yes I think it's a good idea that sg_setup() clears the GL error (and probably logs a warning as you wrote).

@floooh floooh self-assigned this Jul 22, 2018
@floooh
Copy link
Owner

floooh commented Jul 23, 2018

This has been fixed in ef75293

@floooh floooh closed this as completed Jul 23, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants