Alexander Dorofeyev : wined3d: move ENTER_GL in IWineD3DDeviceImpl_Init3D.

Alexandre Julliard julliard at winehq.org
Mon Apr 7 14:46:57 CDT 2008


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

Author: Alexander Dorofeyev <alexd4 at inbox.lv>
Date:   Mon Apr  7 00:06:22 2008 +0300

wined3d: move ENTER_GL in IWineD3DDeviceImpl_Init3D.

---

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

diff --git a/dlls/wined3d/device.c b/dlls/wined3d/device.c
index b022c4e..cd07bf2 100644
--- a/dlls/wined3d/device.c
+++ b/dlls/wined3d/device.c
@@ -2121,11 +2121,13 @@ static HRESULT WINAPI IWineD3DDeviceImpl_Init3D(IWineD3DDevice *iface, WINED3DPR
     }
 
     /* Set up some starting GL setup */
-    ENTER_GL();
 
     /* Setup all the devices defaults */
     IWineD3DStateBlock_InitStartupStateBlock((IWineD3DStateBlock *)This->stateBlock);
     create_dummy_textures(This);
+
+    ENTER_GL();
+
 #if 0
     IWineD3DImpl_CheckGraphicsMemory();
 #endif




More information about the wine-cvs mailing list