wined3d: Remove ENTER_GL/LEAVE_GL in IWineD3DCubeTextureImpl_PreLoad.
authorAlexander Dorofeyev <alexd4@inbox.lv>
Wed, 2 Apr 2008 21:12:08 +0000 (00:12 +0300)
committerAlexandre Julliard <julliard@winehq.org>
Thu, 3 Apr 2008 09:31:27 +0000 (11:31 +0200)
dlls/wined3d/cubetexture.c

index 9426448acd1466e24f891c5849f639ecfefc8428..c44b3f9b91f22ec36143336bbdb713cd0378de70 100644 (file)
@@ -125,7 +125,6 @@ static void WINAPI IWineD3DCubeTextureImpl_PreLoad(IWineD3DCubeTexture *iface) {
     }
     IWineD3DCubeTexture_BindTexture(iface);
 
-    ENTER_GL();
     /* If the texture is marked dirty or the srgb sampler setting has changed since the last load then reload the surfaces */
     if (This->baseTexture.dirty) {
         for (i = 0; i < This->baseTexture.levels; i++) {
@@ -152,7 +151,6 @@ static void WINAPI IWineD3DCubeTextureImpl_PreLoad(IWineD3DCubeTexture *iface) {
     } else {
         TRACE("(%p) Texture not dirty, nothing to do\n" , iface);
     }
-    LEAVE_GL();
 
     /* No longer dirty */
     This->baseTexture.dirty = FALSE;