Stefan Dösinger : ddraw: Do not set the rendertarget flag just because of the backbuffer flag.

Alexandre Julliard julliard at winehq.org
Wed Aug 20 08:13:55 CDT 2008


Module: wine
Branch: master
Commit: 90e2a676e80a76d2dfe34119a5733bbd6bbbe88a
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=90e2a676e80a76d2dfe34119a5733bbd6bbbe88a

Author: Stefan Dösinger <stefan at codeweavers.com>
Date:   Thu Jul 31 17:17:27 2008 -0500

ddraw: Do not set the rendertarget flag just because of the backbuffer flag.

There are also overlay backbuffers, which aren't render targets. The
primarysurface and d3ddevice cap flags should be enough here.

---

 dlls/ddraw/ddraw.c |    1 -
 1 files changed, 0 insertions(+), 1 deletions(-)

diff --git a/dlls/ddraw/ddraw.c b/dlls/ddraw/ddraw.c
index 8eac776..73982ed 100644
--- a/dlls/ddraw/ddraw.c
+++ b/dlls/ddraw/ddraw.c
@@ -2022,7 +2022,6 @@ IDirectDrawImpl_CreateNewSurface(IDirectDrawImpl *This,
     }
     /* Get the correct wined3d usage */
     if (pDDSD->ddsCaps.dwCaps & (DDSCAPS_PRIMARYSURFACE |
-                                 DDSCAPS_BACKBUFFER     |
                                  DDSCAPS_3DDEVICE       ) )
     {
         Usage |= WINED3DUSAGE_RENDERTARGET;




More information about the wine-cvs mailing list