wined3d: Don't check for render target usage in wined3d_surface_set_mem.

Ddraw and d3d9 already take care of this.
This commit is contained in:
Stefan Dösinger 2013-12-13 12:30:12 +01:00 committed by Alexandre Julliard
parent 25a0375432
commit a1762ba8a4
1 changed files with 0 additions and 7 deletions

View File

@ -2611,13 +2611,6 @@ HRESULT CDECL wined3d_surface_set_mem(struct wined3d_surface *surface, void *mem
return WINED3DERR_INVALIDCALL;
}
/* Render targets depend on their hdc, and we can't create an hdc on a user pointer. */
if (surface->resource.usage & WINED3DUSAGE_RENDERTARGET)
{
ERR("Not supported on render targets.\n");
return WINED3DERR_INVALIDCALL;
}
if (mem && mem != surface->resource.allocatedMemory)
{
/* Do I have to copy the old surface content? */