wined3d: Add missing GL locking to IWineD3DDeviceImpl_Uninit3D().
Henri Verbeet
hverbeet at codeweavers.com
Wed May 13 11:22:55 CDT 2009
---
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;
--
1.6.0.6
--------------090505090509010704030704--
More information about the wine-patches
mailing list