wined3d: Only use WINE_normalized_texrect if ARB_texture_np2 is supported.

This commit is contained in:
Stefan Dösinger 2009-08-02 15:12:26 +02:00 committed by Alexandre Julliard
parent 2e9362d0fb
commit f53451ddac
1 changed files with 6 additions and 3 deletions

View File

@ -715,9 +715,12 @@ static void quirk_ati_dx9(struct wined3d_gl_info *gl_info)
* fglrx doesn't advertise GL_ARB_texture_non_power_of_two, but it advertises opengl 2.0 which * fglrx doesn't advertise GL_ARB_texture_non_power_of_two, but it advertises opengl 2.0 which
* has this extension promoted to core. The extension loading code sets this extension supported * has this extension promoted to core. The extension loading code sets this extension supported
* due to that, so this code works on fglrx as well. */ * due to that, so this code works on fglrx as well. */
TRACE("GL_ARB_texture_non_power_of_two advertised on R500 or earlier card, removing.\n"); if(gl_info->supported[ARB_TEXTURE_NON_POWER_OF_TWO])
gl_info->supported[ARB_TEXTURE_NON_POWER_OF_TWO] = FALSE; {
gl_info->supported[WINE_NORMALIZED_TEXRECT] = TRUE; TRACE("GL_ARB_texture_non_power_of_two advertised on R500 or earlier card, removing.\n");
gl_info->supported[ARB_TEXTURE_NON_POWER_OF_TWO] = FALSE;
gl_info->supported[WINE_NORMALIZED_TEXRECT] = TRUE;
}
/* fglrx has the same structural issues as the one described in quirk_apple_glsl_constants, although /* fglrx has the same structural issues as the one described in quirk_apple_glsl_constants, although
* it is generally more efficient. Reserve just 8 constants. */ * it is generally more efficient. Reserve just 8 constants. */