From 88651404cbca2c6771e6331747f948a5f02a3655 Mon Sep 17 00:00:00 2001 From: Anders Jenbo Date: Wed, 14 May 2025 21:54:35 +0200 Subject: [PATCH] Correct dwCaps enum in detectdx5.cpp (#1484) --- CONFIG/detectdx5.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CONFIG/detectdx5.cpp b/CONFIG/detectdx5.cpp index a4284796..063bc94b 100644 --- a/CONFIG/detectdx5.cpp +++ b/CONFIG/detectdx5.cpp @@ -113,7 +113,7 @@ void DetectDirectX(unsigned int* p_version, BOOL* p_found) memset(&surface_desc, 0, sizeof(surface_desc)); surface_desc.dwSize = sizeof(surface_desc); surface_desc.dwFlags = DDSD_CAPS; - surface_desc.ddsCaps.dwCaps = DDCAPS2_NONLOCALVIDMEM; + surface_desc.ddsCaps.dwCaps = DDSCAPS_PRIMARYSURFACE; if (FAILED(ddraw2->SetCooperativeLevel(NULL, DISCL_BACKGROUND))) { ddraw2->Release(); FreeLibrary(ddraw_module);