1
0
mirror of https://github.com/narzoul/DDrawCompat synced 2024-12-30 08:55:36 +01:00

Removed CpuOptimized flag on off-screen plain surfaces

Fixes a black screen issue on some Intel GPU drivers, reported in issue #23.
This commit is contained in:
narzoul 2017-11-05 13:18:44 +01:00
parent cff2b7e1eb
commit 46f71be51a

View File

@ -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) &&