Am 27.04.2009 um 12:33 schrieb IOhannes m zmoelnig:
Matthias Neuenhofer wrote:
apart from that id don't know whether i can follow your problems here. what are you trying to achieve with commenting out the 2 conditions? to not get an error "cannot load shader now! deferrubg till later..."?
no i got the error "cannot load shader now" from this part when it has VERSION_2_1 if(!GLEW_VERSION_2_0 && !GLEW_ARB_geometry_shader4) { post("cannot load shader now!"); return; } VERSION_2_0 work so i dont understand why V_2_1 failed - openGL 2.1 and latest GLEW version 1.5.1 are installed
but as i understand it: GL_VERSION_2_1 defines geometry shaders. on GL_VERSION_2_0 a card _could_ have the ARB extension; if either was true (in your case at least the ARB extension is there) then the checks should succeed. btw, i have simplified the code in svn a bit (using isRunnable() which you didn't have to hack, so it seems like the new code might work for you anyhow).
ja no problems with the new code compiled and run fine
as for "latest GLEW" being installed, this doesn't really matter, since Gem includes its own static version of GLEW.
but if you have it installed, could you post the output of glewinfo?
at least the geometry_shader are functioning :)
yep; that's all we want, isn't it?
fgmasdr IOhannes