Jump to content

  • Log In with Google      Sign In   
  • Create Account

FREE SOFTWARE GIVEAWAY

We have 4 x Pro Licences (valued at $59 each) for 2d modular animation software Spriter to give away in this Thursday's GDNet Direct email newsletter.


Read more in this forum topic or make sure you're signed up (from the right-hand sidebar on the homepage) and read Thursday's newsletter to get in the running!


GLew 1.10 not working with SDL2?


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   -  Reputation: 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.

 

 

 



Sponsor:

#2 BitMaster   Crossbones+   -  Reputation: 4436

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   -  Reputation: 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   -  Reputation: 10399

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]





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.



PARTNERS