views:

27

answers:

1

Hello Everyone, I am building a dll, which cannot have any dependencies, so I have to compile all the Mesa source code along with it. Now I got the basic opengl drawing working, but I cannot get shaders to work with OSMesa(Offscreen rendering). All the shader examples that come with the sample projects in Mesa have GLEW.h included. But OSMesa doesn't compile when I include glew.h. Any help would be extremely appreciated. Thank you!

A: 

GLEW just handles acquiring OpenGL extension function pointers on win32. If you're just using OSMesa you may be able to get by without it.

genpfault
Hello Thank you for your answer. I did try it, and it partially worked. I just got the process addresses directly using 'wglGetProcAddress'. Now the shaders compile, but after I call glUseProgram, nothing happens. All the geometry, textures look same and there is no effect of the shaders. I even looked into glInfoLog and it tells that both the shaders (vertex and fragment) are compiled. I have no idea what's going on. Can you help me understand? I really appreciate you taking time for answering my pestering questions. Thank you!
gutsblow