From a0780312ca7d62c5e7012af6517288337d17b46c Mon Sep 17 00:00:00 2001 From: Elisha Riedlinger Date: Fri, 8 Sep 2023 11:39:50 -0700 Subject: [PATCH] Don't remove backbuffer flag --- Dllmain/BuildNo.rc | 2 +- ddraw/IDirectDrawSurfaceX.cpp | 4 ---- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/Dllmain/BuildNo.rc b/Dllmain/BuildNo.rc index 36396758..e0038abb 100644 --- a/Dllmain/BuildNo.rc +++ b/Dllmain/BuildNo.rc @@ -1 +1 @@ -#define BUILD_NUMBER 6803 +#define BUILD_NUMBER 6804 diff --git a/ddraw/IDirectDrawSurfaceX.cpp b/ddraw/IDirectDrawSurfaceX.cpp index 1e0b5024..04fed7a5 100644 --- a/ddraw/IDirectDrawSurfaceX.cpp +++ b/ddraw/IDirectDrawSurfaceX.cpp @@ -4903,10 +4903,6 @@ inline void m_IDirectDrawSurfaceX::InitSurfaceDesc(DWORD DirectXVersion) Desc2.ddsCaps.dwCaps |= DDSCAPS_BACKBUFFER; Desc2.dwReserved = (DWORD)this; } - else if (Desc2.ddsCaps.dwCaps & DDSCAPS_BACKBUFFER) - { - Desc2.ddsCaps.dwCaps &= ~DDSCAPS_BACKBUFFER; - } // Create complex surfaces if (Desc2.ddsCaps.dwCaps & DDSCAPS_COMPLEX)