From e505e08b53f8762efed41ac040634bdf913e5af2 Mon Sep 17 00:00:00 2001 From: Yousef Khadadeh Date: Mon, 9 Feb 2026 14:27:54 +0300 Subject: [PATCH] Remove disable driver workaround on Emscripten --- src/Toolbar.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/Toolbar.cpp b/src/Toolbar.cpp index 776a98a..0f0975c 100644 --- a/src/Toolbar.cpp +++ b/src/Toolbar.cpp @@ -1704,7 +1704,9 @@ void Toolbar::options_menu() { gui.slider_scalar_field("scroll zoom slider", "Scroll zoom speed", &scrollZoomSpeed, 0.0, 1.0, 3); gui.checkbox_field("flip zoom tool direction", "Flip zoom tool direction", &flipZoomToolDirection); gui.checkbox_field("make all tools share same size", "Make all tools share size", &main.toolConfig.globalConf.useGlobalRelativeWidth); - gui.checkbox_field("disable graphics driver workarounds", "Disable graphics driver workarounds (enabling or disabling this might fix some graphical glitches, requires restart)", &main.window.disableGraphicsDriverWorkarounds); + #ifndef __EMSCRIPTEN__ + gui.checkbox_field("disable graphics driver workarounds", "Disable graphics driver workarounds (enabling or disabling this might fix some graphical glitches, requires restart)", &main.window.disableGraphicsDriverWorkarounds); + #endif gui.input_scalar_field("jump transition time", "Jump transition time", &jumpTransitionTime, 0.01f, 1000.0f, 2); gui.input_scalar_field("Max GUI Scale", "Max GUI Scale", &guiScale, 0.5f, 5.0f, 1);