From 4688d00d1f1edb1c28292e2f0625c2d364b78cf2 Mon Sep 17 00:00:00 2001 From: danyalzia Date: Sat, 28 Sep 2013 15:33:04 +0500 Subject: [PATCH 1/2] Add ATIClampBug --- gfx_es2/gl_state.h | 1 + 1 file changed, 1 insertion(+) diff --git a/gfx_es2/gl_state.h b/gfx_es2/gl_state.h index b9fcd83fd3..b5ac5057a8 100644 --- a/gfx_es2/gl_state.h +++ b/gfx_es2/gl_state.h @@ -304,6 +304,7 @@ struct GLExtensions { bool OES_mapbuffer; bool OES_vertex_array_object; bool EXT_shader_framebuffer_fetch; + bool ATIClampBug; // EGL extensions From 7ab16d7122af4f77f733626958800dc477bf4847 Mon Sep 17 00:00:00 2001 From: danyalzia Date: Sat, 28 Sep 2013 15:36:09 +0500 Subject: [PATCH 2/2] Add gl_extensions.ATIClampBug --- gfx_es2/gl_state.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/gfx_es2/gl_state.cpp b/gfx_es2/gl_state.cpp index 6a5e46db79..b40d783108 100644 --- a/gfx_es2/gl_state.cpp +++ b/gfx_es2/gl_state.cpp @@ -185,6 +185,7 @@ void CheckGLExtensions() { gl_extensions.FBO_ARB = strstr(extString, "GL_ARB_framebuffer_object") != 0; gl_extensions.FBO_EXT = strstr(extString, "GL_EXT_framebuffer_object") != 0; gl_extensions.PBO_ARB = strstr(extString, "GL_ARB_pixel_buffer_object") != 0; + gl_extensions.ATIClampBug = ((strncmp ((char *)glGetString(GL_RENDERER), "ATI RADEON X", 12) != 0) || (strncmp ((char *)glGetString(GL_RENDERER), "ATI MOBILITY RADEON X",21) != 0)); } #endif }