[PATCH 1/5] wined3d: Don't check for render target usage in wined3d_surface_set_mem.
Stefan Dösinger
stefan at codeweavers.com
Fri Dec 13 05:30:12 CST 2013
Ddraw and d3d9 already take care of this.
---
dlls/wined3d/surface.c | 7 -------
1 file changed, 7 deletions(-)
diff --git a/dlls/wined3d/surface.c b/dlls/wined3d/surface.c
index ec9ac6c..4d87d23 100644
--- a/dlls/wined3d/surface.c
+++ b/dlls/wined3d/surface.c
@@ -2620,13 +2620,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? */
--
1.8.3.2
More information about the wine-patches
mailing list