Reset the EGL renderer when specialization fails

This commit is contained in:
Cameron Gutman 2022-05-17 17:10:40 -05:00
commit 8aa42ff1d9
2 changed files with 18 additions and 0 deletions

View file

@ -1653,6 +1653,12 @@ void Session::execInternal()
case SDL_RENDER_DEVICE_RESET:
case SDL_RENDER_TARGETS_RESET:
if (event.type != SDL_WINDOWEVENT) {
SDL_LogWarn(SDL_LOG_CATEGORY_APPLICATION,
"Recreating renderer by internal request: %d",
event.type);
}
SDL_AtomicLock(&m_DecoderLock);
// Destroy the old decoder