Sent: Sunday, September 19, 2010 1:36 AM >So I think we should just require GLSL >= 1.20 (add '#version 120' as >the first line of shaders) and use the fixed pipeline (when available) >for systems (like my laptop) that fail to compile the shader. > >For reference: > * My laptop (Lenovo Thinkpad T500) claims GLSL 1.20 but appears to only > support GLSL 1.10 > * My desktop (GeForce GTX 260) claims GLSL 1.50 and at least supports > the '#version 150' directive > >-- >Giel
Hello, Just a small notice: If you're adding version directive directly in shader, be aware that it could be prepended with some definition like FOG_ENABLED. IINM the #version directive should be the first line of shader code by GLSL specs or compilation could fail (it may be relaxed by GLSL compiler, I guess). So, the right place to add/hardcode version directive is in this function: http://developer.wz2100.net/browser/trunk/lib/ivis_opengl/piestate.c#L213 --------- i-NoD _______________________________________________ Warzone-dev mailing list [email protected] https://mail.gna.org/listinfo/warzone-dev
