wined3d: Add ENTER_GL/LEAVE_GL in IWineD3DDeviceImpl_ResourceReleased.

This commit is contained in:
Alexander Dorofeyev 2008-04-07 00:06:01 +03:00 committed by Alexandre Julliard
parent a2017f4f21
commit 2157c7d76c
1 changed files with 2 additions and 0 deletions

View File

@ -7362,6 +7362,7 @@ static void WINAPI IWineD3DDeviceImpl_ResourceReleased(IWineD3DDevice *iface, IW
} }
} }
ENTER_GL();
for (i = 0; i < GL_LIMITS(buffers); ++i) { for (i = 0; i < GL_LIMITS(buffers); ++i) {
if (This->fbo_color_attachments[i] == (IWineD3DSurface *)resource) { if (This->fbo_color_attachments[i] == (IWineD3DSurface *)resource) {
bind_fbo(iface, GL_FRAMEBUFFER_EXT, &This->fbo); bind_fbo(iface, GL_FRAMEBUFFER_EXT, &This->fbo);
@ -7374,6 +7375,7 @@ static void WINAPI IWineD3DDeviceImpl_ResourceReleased(IWineD3DDevice *iface, IW
set_depth_stencil_fbo(iface, NULL); set_depth_stencil_fbo(iface, NULL);
This->fbo_depth_attachment = NULL; This->fbo_depth_attachment = NULL;
} }
LEAVE_GL();
} }
break; break;