From 8ec63a9cf78b73a0c733fc824b0c396ccb16cb31 Mon Sep 17 00:00:00 2001 From: Alexander Dorofeyev Date: Thu, 3 Apr 2008 00:12:08 +0300 Subject: [PATCH] wined3d: Remove ENTER_GL/LEAVE_GL in IWineD3DCubeTextureImpl_PreLoad. --- dlls/wined3d/cubetexture.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/dlls/wined3d/cubetexture.c b/dlls/wined3d/cubetexture.c index 9426448acd..c44b3f9b91 100644 --- a/dlls/wined3d/cubetexture.c +++ b/dlls/wined3d/cubetexture.c @@ -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;