From 41633b1e56c4b1452bba15d6c0366f23108d5635 Mon Sep 17 00:00:00 2001 From: Yousef Khadadeh Date: Wed, 4 Feb 2026 12:32:07 +0300 Subject: [PATCH] Disable driver correctness workarounds, as they are causing issues on windows --- src/main.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/main.cpp b/src/main.cpp index 9cd21c2..36cc4c5 100755 --- a/src/main.cpp +++ b/src/main.cpp @@ -408,9 +408,6 @@ SDL_AppResult SDL_AppInit(void **appstate, int argc, char **argv) { #ifdef NDEBUG try { #endif - GrContextOptions opts; - opts.fSuppressPrints = true; - int initWidth = 1000; int initHeight = 900; @@ -490,6 +487,10 @@ SDL_AppResult SDL_AppInit(void **appstate, int argc, char **argv) { #elif USE_BACKEND_OPENGL sk_sp iface = GrGLMakeNativeInterface(); + GrContextOptions opts; + opts.fSuppressPrints = true; + opts.fDisableDriverCorrectnessWorkarounds = true; // Driver workarounds causing glitches in windows drivers + mS.ctx = GrDirectContexts::MakeGL(iface, opts); if(!mS.ctx) throw std::runtime_error("[GrDirectContexts::MakeGL] Could not make context");