ogl: disable revision 737df2a68c
for desktop ogl
texelFetch doesn't filter linear, so every copy with filters didn't work correctly. This is still the case for gles, but this will be fixed after the 4.0 release. Fixes issue 6465.
This commit is contained in:
parent
4f72671d32
commit
0255e13912
|
@ -60,10 +60,7 @@ struct XFBSource : public XFBSourceBase
|
|||
inline GLenum getFbType()
|
||||
{
|
||||
#ifndef USE_GLES3
|
||||
if(g_ogl_config.eSupportedGLSLVersion == GLSL_120)
|
||||
{
|
||||
return GL_TEXTURE_RECTANGLE;
|
||||
}
|
||||
return GL_TEXTURE_RECTANGLE;
|
||||
#endif
|
||||
return GL_TEXTURE_2D;
|
||||
}
|
||||
|
|
|
@ -566,9 +566,9 @@ void ProgramShaderCache::CreateHeader ( void )
|
|||
, v==GLSL_120 ? "#define ocol1 gl_FragColor" : "" //TODO: implement dual source blend
|
||||
, v==GLSL_120 ? "" : "out vec4 name;"
|
||||
|
||||
, v==GLSL_120 ? "#extension GL_ARB_texture_rectangle : enable" : ""
|
||||
, v==GLSL_120 ? "" : "#define texture2DRect(samp, uv) texelFetch(samp, ivec2(floor(uv)), 0)"
|
||||
, v==GLSL_120 ? "" : "#define sampler2DRect sampler2D"
|
||||
, v==GLSLES3 ? "" : v<=GLSL_130 ? "#extension GL_ARB_texture_rectangle : enable" : "#define texture2DRect texture"
|
||||
, v==GLSLES3 ? "#define texture2DRect(samp, uv) texelFetch(samp, ivec2(floor(uv)), 0)" : ""
|
||||
, v==GLSLES3 ? "#define sampler2DRect sampler2D" : ""
|
||||
);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue