Stefan Dösinger : wined3d: Call fixup_extensions before destroying the fake context.

Alexandre Julliard julliard at winehq.org
Mon Mar 3 14:03:32 CST 2008


Module: wine
Branch: master
Commit: 5709a0b4b6af7cd211a491de09a2837d03c7ba91
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=5709a0b4b6af7cd211a491de09a2837d03c7ba91

Author: Stefan Dösinger <stefan at codeweavers.com>
Date:   Sun Feb 24 10:19:01 2008 +0100

wined3d: Call fixup_extensions before destroying the fake context.

---

 dlls/wined3d/directx.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/dlls/wined3d/directx.c b/dlls/wined3d/directx.c
index 5b7333c..b7c56a6 100644
--- a/dlls/wined3d/directx.c
+++ b/dlls/wined3d/directx.c
@@ -3397,10 +3397,11 @@ BOOL InitAdapters(void) {
             TRACE("iPixelFormat=%d, RGBA=%d/%d/%d/%d, depth=%d, stencil=%d\n", cfgs->iPixelFormat, cfgs->redSize, cfgs->greenSize, cfgs->blueSize, cfgs->alphaSize, cfgs->depthSize, cfgs->stencilSize);
             cfgs++;
         }
-        WineD3D_ReleaseFakeGLContext();
 
         fixup_extensions(&Adapters[0].gl_info);
 
+        WineD3D_ReleaseFakeGLContext();
+
         select_shader_mode(&Adapters[0].gl_info, WINED3DDEVTYPE_HAL, &ps_selected_mode, &vs_selected_mode);
         select_shader_max_constants(ps_selected_mode, vs_selected_mode, &Adapters[0].gl_info);
         fillGLAttribFuncs(&Adapters[0].gl_info);




More information about the wine-cvs mailing list