From fa229f379093a3e29ac578dae9169da43fabf57f Mon Sep 17 00:00:00 2001 From: David Ludwig Date: Tue, 27 Aug 2013 12:22:02 -0400 Subject: [PATCH] WinRT: fixed a crash that occurred on device rotation (oops!) --- src/video/winrt/SDL_winrtvideo.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/video/winrt/SDL_winrtvideo.cpp b/src/video/winrt/SDL_winrtvideo.cpp index 55a705928..756162e5b 100644 --- a/src/video/winrt/SDL_winrtvideo.cpp +++ b/src/video/winrt/SDL_winrtvideo.cpp @@ -125,7 +125,7 @@ WINRT_CreateDevice(int devindex) device->PumpEvents = WINRT_PumpEvents; device->GetWindowWMInfo = WINRT_GetWindowWMInfo; device->free = WINRT_DeleteDevice; - WINRT_GlobalSDLVideoDevice = NULL; + WINRT_GlobalSDLVideoDevice = device; return device; }