• Advertisement
Sign in to follow this  

GLew 1.10 not working with SDL2?

This topic is 1398 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Has anyone managed to get GLew 1.10 to initialize with SDL2? The problem I'm having is when it comes to initializing glewInit(), I get the error that I need GLEW* glewGetContext() function.
 
I've managed to GLew 1.10 to work with GLFW3 by passing the window and glew context through a struct and then returning the window through glewGetContext(), but that same method doesn't work in regards to SDL2.

 

 

 

Share this post


Link to post
Share on other sites
Advertisement

Are you absolutely certain you are compiling against and linking to the correct GLEW? glewGetContext seems to suggest you are working with the multiple context version of GLEW. Especially in a game-related situation you probably don't want/need that.

Edited by BitMaster

Share this post


Link to post
Share on other sites

As BitMaster stated, it sounds like you are (unintentionally?) using/compiling wrong version of GLEW library that supports multiple rendering contexts (internally marked with "MX" suffix).

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement