Alexander Dorofeyev : wined3d: Add ENTER_GL/ LEAVE_GL in IWineD3DDeviceImpl_ResourceReleased.
Module: wine Branch: master Commit: 2157c7d76c1f09084893d4ebee517975f5ed0390 URL: http://source.winehq.org/git/wine.git/?a=commit;h=2157c7d76c1f09084893d4ebee... Author: Alexander Dorofeyev <alexd4(a)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;
participants (1)
-
Alexandre Julliard