Disable driver correctness workarounds, as they are causing issues on windows

This commit is contained in:
Yousef Khadadeh 2026-02-04 12:32:07 +03:00
parent 730a2f1986
commit 41633b1e56

View file

@ -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<const GrGLInterface> 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");