Merge remote-tracking branch 'isle/master'

This commit is contained in:
Christian Semmler 2025-05-14 12:54:42 -07:00
commit 735e3c6763
No known key found for this signature in database
GPG Key ID: 086DAA1360BEEE5C

View File

@ -119,7 +119,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);