Alexander Dorofeyev : wined3d: Add ENTER_GL/ LEAVE_GL in IWineD3DDeviceImpl_ResourceReleased.
Alexandre Julliard
julliard at winehq.org
Mon Apr 7 14:46:55 CDT 2008
Module: wine
Branch: master
Commit: 2157c7d76c1f09084893d4ebee517975f5ed0390
URL: http://source.winehq.org/git/wine.git/?a=commit;h=2157c7d76c1f09084893d4ebee517975f5ed0390
Author: Alexander Dorofeyev <alexd4 at inbox.lv>
Date: Mon Apr 7 00:06:01 2008 +0300
wined3d: Add ENTER_GL/LEAVE_GL in IWineD3DDeviceImpl_ResourceReleased.
---
dlls/wined3d/device.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/dlls/wined3d/device.c b/dlls/wined3d/device.c
index eed3541..b022c4e 100644
--- a/dlls/wined3d/device.c
+++ b/dlls/wined3d/device.c
@@ -7362,6 +7362,7 @@ static void WINAPI IWineD3DDeviceImpl_ResourceReleased(IWineD3DDevice *iface, IW
}
}
+ ENTER_GL();
for (i = 0; i < GL_LIMITS(buffers); ++i) {
if (This->fbo_color_attachments[i] == (IWineD3DSurface *)resource) {
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);
This->fbo_depth_attachment = NULL;
}
+ LEAVE_GL();
}
break;
More information about the wine-cvs
mailing list