From f8bb0c4ccc865a892d27280c72d73c1e7c25d6d0 Mon Sep 17 00:00:00 2001 From: danyalzia Date: Wed, 15 Jan 2014 15:11:46 +0500 Subject: [PATCH] Fix ATI bug --- gfx_es2/gl_state.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/gfx_es2/gl_state.cpp b/gfx_es2/gl_state.cpp index 952524082f..1e1d571621 100644 --- a/gfx_es2/gl_state.cpp +++ b/gfx_es2/gl_state.cpp @@ -196,7 +196,9 @@ void CheckGLExtensions() { #endif // Check the desktop extension instead of the OES one. They are very similar. - gl_extensions.OES_texture_npot = strstr(extString, "GL_ARB_texture_non_power_of_two") != 0; + // Also explicitly check those ATI devices that claims to support npot + gl_extensions.OES_texture_npot = strstr(extString, "GL_ARB_texture_non_power_of_two") != 0 + && !(((strncmp(renderer, "ATI RADEON X", 12) == 0) || (strncmp(renderer, "ATI MOBILITY RADEON X", 21) == 0))); gl_extensions.NV_draw_texture = strstr(extString, "GL_NV_draw_texture") != 0; gl_extensions.ARB_blend_func_extended = strstr(extString, "GL_ARB_blend_func_extended") != 0;