ddraw: Do not increase wined3d texture refcount in IDirect3DDevice7_GetTexture.

This commit is contained in:
Ričardas Barkauskas 2011-07-10 11:56:41 +03:00 committed by Alexandre Julliard
parent 187f50aad3
commit f5c46b01f4
1 changed files with 1 additions and 0 deletions

View File

@ -4453,6 +4453,7 @@ IDirect3DDeviceImpl_7_GetTexture(IDirect3DDevice7 *iface,
*Texture = wined3d_texture_get_parent(wined3d_texture);
IDirectDrawSurface7_AddRef(*Texture);
wined3d_texture_decref(wined3d_texture);
LeaveCriticalSection(&ddraw_cs);
return hr;
}