glsl: fix for AMD

I hope :)
This commit is contained in:
Gregory Hainaut 2015-06-27 16:58:37 +02:00
parent 2af7dcbda2
commit e2727f10ba
2 changed files with 2 additions and 2 deletions

View File

@ -705,7 +705,7 @@ void ps_main()
#endif
#if PS_DATE == 3 && !defined(DISABLE_GL42_image)
int stencil_ceil = imageLoad(img_prim_min, ivec2(gl_FragCoord.xy));
int stencil_ceil = imageLoad(img_prim_min, ivec2(gl_FragCoord.xy)).r;
// Note gl_PrimitiveID == stencil_ceil will be the primitive that will update
// the bad alpha value so we must keep it.

View File

@ -1561,7 +1561,7 @@ static const char* tfx_fs_all_glsl =
"#endif\n"
"\n"
"#if PS_DATE == 3 && !defined(DISABLE_GL42_image)\n"
" int stencil_ceil = imageLoad(img_prim_min, ivec2(gl_FragCoord.xy));\n"
" int stencil_ceil = imageLoad(img_prim_min, ivec2(gl_FragCoord.xy)).r;\n"
" // Note gl_PrimitiveID == stencil_ceil will be the primitive that will update\n"
" // the bad alpha value so we must keep it.\n"
"\n"