Commit 46ef2e06 authored by Jens Albretsen's avatar Jens Albretsen Committed by Alexandre Julliard

ddraw: IDirect3DTextureImpl_Load failed when texture was loading onto itself.

parent 751b55f4
...@@ -301,6 +301,11 @@ IDirect3DTextureImpl_Load(IDirect3DTexture2 *iface, ...@@ -301,6 +301,11 @@ IDirect3DTextureImpl_Load(IDirect3DTexture2 *iface,
ICOM_THIS_FROM(IDirectDrawSurfaceImpl, IDirect3DTexture2, iface); ICOM_THIS_FROM(IDirectDrawSurfaceImpl, IDirect3DTexture2, iface);
IDirectDrawSurfaceImpl *src_ptr = ICOM_OBJECT(IDirectDrawSurfaceImpl, IDirect3DTexture2, D3DTexture2); IDirectDrawSurfaceImpl *src_ptr = ICOM_OBJECT(IDirectDrawSurfaceImpl, IDirect3DTexture2, D3DTexture2);
HRESULT ret_value = D3D_OK; HRESULT ret_value = D3D_OK;
if(src_ptr == This)
{
TRACE(" copying surface %p to surface %p, why? \n", src_ptr, This);
return ret_value;
}
TRACE("(%p)->(%p)\n", This, src_ptr); TRACE("(%p)->(%p)\n", This, src_ptr);
EnterCriticalSection(&ddraw_cs); EnterCriticalSection(&ddraw_cs);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment