I have searched Google and the Qt site for solutions. I am using #define QT_NO_OPENGL_ES_2 to allow the glew headers to work okay. I am creating a custom QGLWidget (following tutorials), and calling glewInit() from within the initializeGL() method. One or two posts seemed to indicate that this is the correct method for how to ensure that you have a valid GL context.
I have also tried including the glewInit() function from within the draw method, where I am clearing the screen to any number of colors (to verify that gl calls are making it through).
So how, then, am I supposed to get a valid context for glew?
(I’m on Windows, using the Visual C++ compiler.)
↧