Flush all window events after SDL_CreateRenderer()
This commit is contained in:
parent
2aa18dc88f
commit
b4548c1af2
2 changed files with 14 additions and 0 deletions
|
|
@ -1251,6 +1251,12 @@ void Session::exec(int displayOriginX, int displayOriginY)
|
|||
SDL_SetWindowPosition(m_Window, x, y);
|
||||
}
|
||||
|
||||
SDL_LogInfo(SDL_LOG_CATEGORY_APPLICATION,
|
||||
"Recreating renderer for window event: %d (%d %d)",
|
||||
event.window.event,
|
||||
event.window.data1,
|
||||
event.window.data2);
|
||||
|
||||
// Fall through
|
||||
case SDL_RENDER_DEVICE_RESET:
|
||||
case SDL_RENDER_TARGETS_RESET:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue