Module: wine Branch: master Commit: 6f321ff2f97a4eb1e613022342399c3ffc41bc89 URL: http://source.winehq.org/git/wine.git/?a=commit;h=6f321ff2f97a4eb1e613022342...
Author: Henri Verbeet hverbeet@codeweavers.com Date: Thu Sep 5 09:54:39 2013 +0200
ddraw: Don't imply WINED3DUSAGE_RENDERTARGET on primary surfaces.
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 files changed, 0 insertions(+), 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)) {