Fix Desktop GLSL versions in the recent changes.

Seems OpenGL ES 3 Requires you must have an lod argument, while Desktop
versions require you must not have a lod argument if you are using a
Sampler2DRect (which doesn't do Mipmapping).
This commit is contained in:
Scott Mansell 2013-11-24 22:48:10 +13:00
parent 531f840720
commit e6b35642df

View file

@ -85,7 +85,11 @@ void CreatePrograms()
"COLOROUT(ocol0)\n"
"void main()\n"
"{\n"
#ifdef USE_GLES3
" vec4 c0 = texelFetch(samp9, ivec2(uv0), 0);\n"
#else
" vec4 c0 = texelFetch(samp9, ivec2(uv0));\n"
#endif
" float f = step(0.5, fract(uv0.x));\n"
" float y = mix(c0.b, c0.r, f);\n"
" float yComp = 1.164 * (y - 0.0625);\n"