Roderick Colenbrander : wgl: Fix a render_texture regression. Only enable GLX_ATI_render_texture when the ati extension is around.
Module: wine Branch: master Commit: d068bdd82092651db10cff59da6e44e567aafc07 URL: http://source.winehq.org/git/wine.git/?a=commit;h=d068bdd82092651db10cff59da... Author: Roderick Colenbrander <thunderbird2k(a)gmx.net> Date: Fri Aug 17 11:16:29 2007 +0200 wgl: Fix a render_texture regression. Only enable GLX_ATI_render_texture when the ati extension is around. --- dlls/winex11.drv/opengl.c | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/dlls/winex11.drv/opengl.c b/dlls/winex11.drv/opengl.c index 516de5f..5eed1ed 100644 --- a/dlls/winex11.drv/opengl.c +++ b/dlls/winex11.drv/opengl.c @@ -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");
participants (1)
-
Alexandre Julliard