Alexander Dorofeyev : wined3d: move ENTER_GL in IWineD3DDeviceImpl_Init3D.
Module: wine Branch: master Commit: 71ca80355dcd36050a3bc6299653e3eaa9fefe8c URL: http://source.winehq.org/git/wine.git/?a=commit;h=71ca80355dcd36050a3bc62996... Author: Alexander Dorofeyev <alexd4(a)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
participants (1)
-
Alexandre Julliard