From 947b562e06daad9a0111c25e10b33c04d786c769 Mon Sep 17 00:00:00 2001 From: OatmealDome Date: Sun, 30 Jan 2022 21:44:57 -0500 Subject: [PATCH] VideoConfig: Add flag for whether the system supports setting object names --- Source/Core/VideoBackends/Null/NullBackend.cpp | 1 + Source/Core/VideoBackends/Software/SWmain.cpp | 1 + Source/Core/VideoCommon/VideoConfig.h | 1 + 3 files changed, 3 insertions(+) diff --git a/Source/Core/VideoBackends/Null/NullBackend.cpp b/Source/Core/VideoBackends/Null/NullBackend.cpp index 635650cb11..0a400fc2fa 100644 --- a/Source/Core/VideoBackends/Null/NullBackend.cpp +++ b/Source/Core/VideoBackends/Null/NullBackend.cpp @@ -59,6 +59,7 @@ void VideoBackend::InitBackendInfo() g_Config.backend_info.bSupportsCoarseDerivatives = false; g_Config.backend_info.bSupportsTextureQueryLevels = false; g_Config.backend_info.bSupportsLodBiasInSampler = false; + g_Config.backend_info.bSupportsSettingObjectNames = false; // aamodes: We only support 1 sample, so no MSAA g_Config.backend_info.Adapters.clear(); diff --git a/Source/Core/VideoBackends/Software/SWmain.cpp b/Source/Core/VideoBackends/Software/SWmain.cpp index 654813d5eb..753f869c8e 100644 --- a/Source/Core/VideoBackends/Software/SWmain.cpp +++ b/Source/Core/VideoBackends/Software/SWmain.cpp @@ -88,6 +88,7 @@ void VideoSoftware::InitBackendInfo() g_Config.backend_info.bSupportsCoarseDerivatives = false; g_Config.backend_info.bSupportsTextureQueryLevels = false; g_Config.backend_info.bSupportsLodBiasInSampler = false; + g_Config.backend_info.bSupportsSettingObjectNames = false; // aamodes g_Config.backend_info.AAModes = {1}; diff --git a/Source/Core/VideoCommon/VideoConfig.h b/Source/Core/VideoCommon/VideoConfig.h index 80d42db233..659611a170 100644 --- a/Source/Core/VideoCommon/VideoConfig.h +++ b/Source/Core/VideoCommon/VideoConfig.h @@ -234,6 +234,7 @@ struct VideoConfig final bool bSupportsCoarseDerivatives = false; bool bSupportsTextureQueryLevels = false; bool bSupportsLodBiasInSampler = false; + bool bSupportsSettingObjectNames = false; } backend_info; // Utility