Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
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).
  • Loading branch information
phire committed Nov 24, 2013
1 parent 531f840 commit e6b3564
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Source/Core/VideoBackends/OGL/Src/TextureConverter.cpp
Expand Up @@ -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"
Expand Down

0 comments on commit e6b3564

Please sign in to comment.