[PATCH 1/5] ddraw: Don't imply WINED3DUSAGE_RENDERTARGET on primary surfaces.
Henri Verbeet
hverbeet at codeweavers.com
Thu Sep 5 02:54:39 CDT 2013
If the application actually wants to do 3D rendering on the primary surface,
it should set DDSCAPS_3DDEVICE as well.
---
dlls/ddraw/surface.c | 3 ---
1 file changed, 3 deletions(-)
diff --git a/dlls/ddraw/surface.c b/dlls/ddraw/surface.c
index 4108fcd..6435774 100644
--- a/dlls/ddraw/surface.c
+++ b/dlls/ddraw/surface.c
@@ -5716,10 +5716,7 @@ HRESULT ddraw_surface_init(struct ddraw_surface *surface, struct ddraw *ddraw,
}
if (desc->ddsCaps.dwCaps & DDSCAPS_PRIMARYSURFACE)
- {
- usage |= WINED3DUSAGE_RENDERTARGET;
desc->ddsCaps.dwCaps |= DDSCAPS_VISIBLE;
- }
if ((desc->ddsCaps.dwCaps & DDSCAPS_3DDEVICE) && !(desc->ddsCaps.dwCaps & DDSCAPS_ZBUFFER))
{
--
1.8.1.5
More information about the wine-patches
mailing list