wgl: Fix a render_texture regression. Only enable GLX_ATI_render_texture when the ati extension is around.

This commit is contained in:
Roderick Colenbrander 2007-08-17 11:16:29 +02:00 committed by Alexandre Julliard
parent c31ead4768
commit d068bdd820
1 changed files with 2 additions and 1 deletions

View File

@ -139,7 +139,7 @@ typedef struct wine_glpbuffer {
static Wine_GLContext *context_list;
static struct WineGLInfo WineGLInfo = { 0 };
static int use_render_texture_emulation = 1;
static int use_render_texture_ati = 1;
static int use_render_texture_ati = 0;
static int swap_interval = 1;
#define MAX_EXTENSIONS 16
@ -507,6 +507,7 @@ LOAD_FUNCPTR(glXFreeMemoryNV)
}
if(glxRequireExtension("GLX_ATI_render_texture")) {
use_render_texture_ati = 1;
pglXBindTexImageATI = (void*)pglXGetProcAddressARB((const GLubyte *) "glXBindTexImageATI");
pglXReleaseTexImageATI = (void*)pglXGetProcAddressARB((const GLubyte *) "glXReleaseTexImageATI");
pglXDrawableAttribATI = (void*)pglXGetProcAddressARB((const GLubyte *) "glXDrawableAttribATI");