Henri Verbeet : wined3d: Add missing GL locking to IWineD3DDeviceImpl_Uninit3D().
Alexandre Julliard
julliard at winehq.org
Thu May 14 11:07:41 CDT 2009
Module: wine
Branch: master
Commit: 639b2582006cbfdc1102ac64a57b516ab07b1fe4
URL: http://source.winehq.org/git/wine.git/?a=commit;h=639b2582006cbfdc1102ac64a57b516ab07b1fe4
Author: Henri Verbeet <hverbeet at codeweavers.com>
Date: Wed May 13 18:22:55 2009 +0200
wined3d: Add missing GL locking to IWineD3DDeviceImpl_Uninit3D().
---
dlls/wined3d/device.c | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/dlls/wined3d/device.c b/dlls/wined3d/device.c
index ec6d3f0..83af654 100644
--- a/dlls/wined3d/device.c
+++ b/dlls/wined3d/device.c
@@ -2834,11 +2834,15 @@ static HRESULT WINAPI IWineD3DDeviceImpl_Uninit3D(IWineD3DDevice *iface, D3DCB_D
* private data, it might contain opengl pointers
*/
if(This->depth_blt_texture) {
+ ENTER_GL();
glDeleteTextures(1, &This->depth_blt_texture);
+ LEAVE_GL();
This->depth_blt_texture = 0;
}
if (This->depth_blt_rb) {
+ ENTER_GL();
GL_EXTCALL(glDeleteRenderbuffersEXT(1, &This->depth_blt_rb));
+ LEAVE_GL();
This->depth_blt_rb = 0;
This->depth_blt_rb_w = 0;
This->depth_blt_rb_h = 0;
More information about the wine-cvs
mailing list