gui/settings dialog: Fix Surface Sync using OpenGL (#3255)

This commit is contained in:
Zangetsu 2024-03-23 10:02:32 +01:00 committed by GitHub
parent cb15157c13
commit 2424f92c2e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -626,7 +626,7 @@ void draw_settings_dialog(GuiState &gui, EmuEnvState &emuenv) {
const bool has_integer_multiplier = static_cast<int>(config.resolution_multiplier * 4.0f) % 4 == 0;
// OpenGL does not support surface sync with a non-integer resolution multiplier
if (!is_vulkan && has_integer_multiplier)
if (!is_vulkan && !has_integer_multiplier)
config.disable_surface_sync = true;
if ((!is_vulkan && has_integer_multiplier) || emuenv.renderer->features.support_memory_mapping) {