Jump to content

View more

Image of the Day

The beast has a mighty searchlight of evil! #screenshotsaturday https://t.co/bzKepOojDL
IOTD | Top Screenshots

The latest, straight to your Inbox.

Subscribe to GameDev.net Direct to receive the latest updates and exclusive content.


Sign up now

GLew 1.10 not working with SDL2?

4: Adsense

Old topic!

Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.


  • You cannot reply to this topic
3 replies to this topic

#1 seven7vii   Members   

127
Like
0Likes
Like

Posted 23 March 2014 - 01:35 AM

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.

 

 

 



#2 BitMaster   Members   

8647
Like
0Likes
Like

Posted 23 March 2014 - 06:20 AM

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, 23 March 2014 - 06:20 AM.


#3 Guns   Members   

150
Like
0Likes
Like

Posted 23 March 2014 - 09:24 AM

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).



#4 swiftcoder   Senior Moderators   

18223
Like
0Likes
Like

Posted 23 March 2014 - 10:46 AM

I'm guessing you didn't mean to post this in "Coding Horrors"...


Tristam MacDonald - Software Engineer @ Amazon - [swiftcoding] [GitHub]





Old topic!

Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.