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");