From 1978ef9a752dc56b9c7b2df88b8c139b3b20cfe6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stefan=20D=C3=B6singer?= Date: Tue, 6 Nov 2007 01:25:30 +0100 Subject: [PATCH] wined3d: Load extension functions after finding the supported extensions. --- dlls/wined3d/directx.c | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/dlls/wined3d/directx.c b/dlls/wined3d/directx.c index 5401ff5fea6..9d472927a40 100644 --- a/dlls/wined3d/directx.c +++ b/dlls/wined3d/directx.c @@ -623,12 +623,6 @@ BOOL IWineD3DImpl_FillGLCaps(WineD3D_GL_Info *gl_info) { gl_info->vs_arb_constantsF = 0; gl_info->ps_arb_constantsF = 0; -/* Now work out what GL support this card really has */ -#define USE_GL_FUNC(type, pfn) gl_info->pfn = (type) pwglGetProcAddress(#pfn); - GL_EXT_FUNCS_GEN; - WGL_EXT_FUNCS_GEN; -#undef USE_GL_FUNC - /* Retrieve opengl defaults */ glGetIntegerv(GL_MAX_CLIP_PLANES, &gl_max); gl_info->max_clipplanes = min(WINED3DMAXUSERCLIPPLANES, gl_max); @@ -685,6 +679,11 @@ BOOL IWineD3DImpl_FillGLCaps(WineD3D_GL_Info *gl_info) { } } } + /* Now work out what GL support this card really has */ +#define USE_GL_FUNC(type, pfn) gl_info->pfn = (type) pwglGetProcAddress(#pfn); + GL_EXT_FUNCS_GEN; + WGL_EXT_FUNCS_GEN; +#undef USE_GL_FUNC if (gl_info->supported[APPLE_FENCE]) { /* GL_NV_fence and GL_APPLE_fence provide the same functionality basically.