wined3d: Remove ENTER_GL/LEAVE_GL in IWineD3DTextureImpl_PreLoad.
This commit is contained in:
parent
b54553a253
commit
9b04822170
|
@ -115,7 +115,7 @@ static void WINAPI IWineD3DTextureImpl_PreLoad(IWineD3DTexture *iface) {
|
||||||
}
|
}
|
||||||
|
|
||||||
IWineD3DTexture_BindTexture(iface);
|
IWineD3DTexture_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 the texture is marked dirty or the srgb sampler setting has changed since the last load then reload the surfaces */
|
||||||
if (This->baseTexture.dirty) {
|
if (This->baseTexture.dirty) {
|
||||||
for (i = 0; i < This->baseTexture.levels; i++) {
|
for (i = 0; i < This->baseTexture.levels; i++) {
|
||||||
|
@ -135,7 +135,6 @@ static void WINAPI IWineD3DTextureImpl_PreLoad(IWineD3DTexture *iface) {
|
||||||
} else {
|
} else {
|
||||||
TRACE("(%p) Texture not dirty, nothing to do\n" , iface);
|
TRACE("(%p) Texture not dirty, nothing to do\n" , iface);
|
||||||
}
|
}
|
||||||
LEAVE_GL();
|
|
||||||
|
|
||||||
/* No longer dirty */
|
/* No longer dirty */
|
||||||
This->baseTexture.dirty = FALSE;
|
This->baseTexture.dirty = FALSE;
|
||||||
|
|
Loading…
Reference in New Issue