wined3d: Add missing GL locking to IWineD3DDeviceImpl_Uninit3D().

This commit is contained in:
Henri Verbeet 2009-05-13 18:22:55 +02:00 committed by Alexandre Julliard
parent e260132701
commit 639b258200

View File

@ -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;