early-access version 2281

This commit is contained in:
pineappleEA
2021-12-07 02:20:09 +01:00
parent c2ae6d480a
commit c4fa174d53
591 changed files with 36978 additions and 18653 deletions

View File

@@ -66,7 +66,13 @@ OFFSCREEN_GL_LoadLibrary(_THIS, const char* path)
return ret;
}
/* driver_loaded gets incremented by SDL_GL_LoadLibrary when we return,
but SDL_EGL_InitializeOffscreen checks that we're loaded before then,
so temporarily bump it since we know that LoadLibraryOnly succeeded. */
_this->gl_config.driver_loaded++;
ret = SDL_EGL_InitializeOffscreen(_this, 0);
_this->gl_config.driver_loaded--;
if (ret != 0) {
return ret;
}