Stefan Dösinger : wined3d: Load extension functions after finding the supported extensions.
Alexandre Julliard
julliard at winehq.org
Tue Nov 13 08:34:40 CST 2007
Module: wine
Branch: master
Commit: 1978ef9a752dc56b9c7b2df88b8c139b3b20cfe6
URL: http://source.winehq.org/git/wine.git/?a=commit;h=1978ef9a752dc56b9c7b2df88b8c139b3b20cfe6
Author: Stefan Dösinger <stefan at codeweavers.com>
Date: Tue Nov 6 01:25:30 2007 +0100
wined3d: Load extension functions after finding the supported extensions.
---
dlls/wined3d/directx.c | 11 +++++------
1 files changed, 5 insertions(+), 6 deletions(-)
diff --git a/dlls/wined3d/directx.c b/dlls/wined3d/directx.c
index 5401ff5..9d47292 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.
More information about the wine-cvs
mailing list