Module: wine
Branch: master
Commit: a1762ba8a46eca5c7ef1e6a509cdc39fbbb44f2c
URL: http://source.winehq.org/git/wine.git/?a=commit;h=a1762ba8a46eca5c7ef1e6a50…
Author: Stefan Dösinger <stefan(a)codeweavers.com>
Date: Fri Dec 13 12:30:12 2013 +0100
wined3d: Don't check for render target usage in wined3d_surface_set_mem.
Ddraw and d3d9 already take care of this.
---
dlls/wined3d/surface.c | 7 -------
1 files changed, 0 insertions(+), 7 deletions(-)
diff --git a/dlls/wined3d/surface.c b/dlls/wined3d/surface.c
index 8c40516..f18bab1 100644
--- a/dlls/wined3d/surface.c
+++ b/dlls/wined3d/surface.c
@@ -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? */