From 46f71be51a7d2880117ea9f25e9ba6eb06514b70 Mon Sep 17 00:00:00 2001 From: narzoul Date: Sun, 5 Nov 2017 13:18:44 +0100 Subject: [PATCH] Removed CpuOptimized flag on off-screen plain surfaces Fixes a black screen issue on some Intel GPU drivers, reported in issue #23. --- DDrawCompat/D3dDdi/DeviceFuncs.cpp | 5 ----- 1 file changed, 5 deletions(-) diff --git a/DDrawCompat/D3dDdi/DeviceFuncs.cpp b/DDrawCompat/D3dDdi/DeviceFuncs.cpp index 0834ab2..f0d1a3f 100644 --- a/DDrawCompat/D3dDdi/DeviceFuncs.cpp +++ b/DDrawCompat/D3dDdi/DeviceFuncs.cpp @@ -100,11 +100,6 @@ namespace CreateResourceFunc origCreateResource) { const bool isOffScreenPlain = 0 == (resourceData->Flags.Value & g_resourceTypeFlags); - if (isOffScreenPlain) - { - resourceData->Flags.CpuOptimized = 1; - } - if (D3DDDIPOOL_SYSTEMMEM == resourceData->Pool && (isOffScreenPlain || resourceData->Flags.Texture) && D3dDdi::OversizedResource::isSupportedFormat(resourceData->Format) &&