GLew 1.10 not working with SDL2?

Started by
2 comments, last by swiftcoder 10 years ago

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.

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.

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

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

Tristam MacDonald. Ex-BigTech Software Engineer. Future farmer. [https://trist.am]

This topic is closed to new replies.

Advertisement