gsdx-ogl: allow some accurate date when GL_ARB_shader_image_load_store isn't supported

Close #1282
This commit is contained in:
Gregory Hainaut 2016-04-07 19:28:22 +02:00
parent 69a84a2782
commit 17886a9808
2 changed files with 4 additions and 4 deletions

View File

@ -471,7 +471,7 @@ void ps_blend(inout vec4 Color, float As)
void ps_main()
{
#if ((PS_DATE & 3) == 1 || (PS_DATE & 3) == 2) && !defined(DISABLE_GL42_image)
#if ((PS_DATE & 3) == 1 || (PS_DATE & 3) == 2)
#if PS_WRITE_RG == 1
// Pseudo 16 bits access.
@ -489,7 +489,7 @@ void ps_main()
#endif
if (bad) {
#if PS_DATE >= 5
#if PS_DATE >= 5 || defined(DISABLE_GL42_image)
discard;
#else
imageStore(img_prim_min, ivec2(gl_FragCoord.xy), ivec4(-1));

View File

@ -1362,7 +1362,7 @@ static const char* tfx_fs_all_glsl =
"\n"
"void ps_main()\n"
"{\n"
"#if ((PS_DATE & 3) == 1 || (PS_DATE & 3) == 2) && !defined(DISABLE_GL42_image)\n"
"#if ((PS_DATE & 3) == 1 || (PS_DATE & 3) == 2)\n"
"\n"
"#if PS_WRITE_RG == 1\n"
" // Pseudo 16 bits access.\n"
@ -1380,7 +1380,7 @@ static const char* tfx_fs_all_glsl =
"#endif\n"
"\n"
" if (bad) {\n"
"#if PS_DATE >= 5\n"
"#if PS_DATE >= 5 || defined(DISABLE_GL42_image)\n"
" discard;\n"
"#else\n"
" imageStore(img_prim_min, ivec2(gl_FragCoord.xy), ivec4(-1));\n"