Don't show HDR option if we know it's unsupported

This commit is contained in:
Cameron Gutman
2021-12-12 17:43:20 -06:00
parent daf8495acb
commit c4d85cf928
3 changed files with 20 additions and 4 deletions

View File

@@ -64,6 +64,16 @@ SystemProperties::SystemProperties()
hasDiscordIntegration = false;
#endif
// TODO: Do something smarter than this. We should be able to query
// this from the decoder (or just try VIDEO_FORMAT_H265_MAIN10 and
// fail if we don't get a hardware accelerated decoder).
#ifdef Q_OS_DARWIN
// HDR is supported by the VideoToolbox renderer
supportsHdr = true;
#else
supportsHdr = false;
#endif
unmappedGamepads = SdlInputHandler::getUnmappedGamepads();
// Populate data that requires talking to SDL. We do it all in one shot