mirror of https://github.com/PCSX2/pcsx2.git
gsdx-ogl: allow some accurate date when GL_ARB_shader_image_load_store isn't supported
Close #1282
This commit is contained in:
parent
69a84a2782
commit
17886a9808
|
@ -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));
|
||||
|
|
|
@ -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"
|
||||
|
|
Loading…
Reference in New Issue