[PATCH] DDraw: Do not set the rendertarget flag just because of =

Stefan Doesinger stefan at codeweavers.com
Thu Jul 31 17:17:27 CDT 2008


the backbuffer flag=0A=
=0A=
There are also overlay backbuffers, which aren't render targets. The =
primarysurface and d3ddevice cap=0A=
flags should be enough here.=0A=
---=0A=
 dlls/ddraw/ddraw.c |    1 -=0A=
 1 files changed, 0 insertions(+), 1 deletions(-)=0A=
=0A=
diff --git a/dlls/ddraw/ddraw.c b/dlls/ddraw/ddraw.c=0A=
index 8eac776..73982ed 100644=0A=
--- a/dlls/ddraw/ddraw.c=0A=
+++ b/dlls/ddraw/ddraw.c=0A=
@@ -2022,7 +2022,6 @@ IDirectDrawImpl_CreateNewSurface(IDirectDrawImpl =
*This,=0A=
     }=0A=
     /* Get the correct wined3d usage */=0A=
     if (pDDSD->ddsCaps.dwCaps & (DDSCAPS_PRIMARYSURFACE |=0A=
-                                 DDSCAPS_BACKBUFFER     |=0A=
                                  DDSCAPS_3DDEVICE       ) )=0A=
     {=0A=
         Usage |=3D WINED3DUSAGE_RENDERTARGET;=0A=
-- =0A=
1.5.4.5=0A=
=0A=

------=_NextPart_000_0011_01C901F1.94D84F80--




More information about the wine-patches mailing list