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:
parent
cff2b7e1eb
commit
46f71be51a
@ -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) &&
|
||||
|
Loading…
x
Reference in New Issue
Block a user