Reset the EGL renderer when specialization fails
This commit is contained in:
parent
63a5bc5e12
commit
8aa42ff1d9
2 changed files with 18 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue