Don't enable HDR checkbox if no HDR renderers work

This commit is contained in:
Cameron Gutman 2024-09-15 15:09:11 -05:00
parent 3e9e497203
commit de28eda266

View file

@ -413,6 +413,11 @@ void Session::getDecoderInfo(SDL_Window* window,
isHdrSupported = decoder->isHdrSupported();
delete decoder;
}
else {
// We weren't compiled with an HDR-capable renderer or we don't
// have the required GPU driver support for any HDR renderers.
isHdrSupported = false;
}
}
// Try a regular hardware accelerated HEVC decoder now