From 1b4199c0a7a600be1dd1d59cae40ced1ef007ede Mon Sep 17 00:00:00 2001 From: Lynix Date: Tue, 2 Jun 2020 16:40:08 +0200 Subject: [PATCH] Platform/SDL2: Don't SDL_PumpEvents when not owning Windows This is a temporary fix --- src/Nazara/Platform/SDL2/WindowImpl.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Nazara/Platform/SDL2/WindowImpl.cpp b/src/Nazara/Platform/SDL2/WindowImpl.cpp index 29ea02862..e2a71f27b 100644 --- a/src/Nazara/Platform/SDL2/WindowImpl.cpp +++ b/src/Nazara/Platform/SDL2/WindowImpl.cpp @@ -289,7 +289,8 @@ namespace Nz void WindowImpl::ProcessEvents(bool block) { - SDL_PumpEvents(); + if (m_ownsWindow) + SDL_PumpEvents(); /*if (m_ownsWindow)