Disable driver correctness workarounds, as they are causing issues on windows
This commit is contained in:
parent
730a2f1986
commit
41633b1e56
1 changed files with 4 additions and 3 deletions
|
|
@ -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");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue