WinRT: fixed a crash that occurred on device rotation (oops!)
authorDavid Ludwig <dludwig@pobox.com>
Tue, 27 Aug 2013 12:22:02 -0400
changeset 8501 260da37dd755
parent 8500 f25ef28d61e8
child 8502 78d341895e9f
WinRT: fixed a crash that occurred on device rotation (oops!)
src/video/winrt/SDL_winrtvideo.cpp
--- a/src/video/winrt/SDL_winrtvideo.cpp	Tue Aug 27 12:20:35 2013 -0400
+++ b/src/video/winrt/SDL_winrtvideo.cpp	Tue Aug 27 12:22:02 2013 -0400
@@ -125,7 +125,7 @@
     device->PumpEvents = WINRT_PumpEvents;
     device->GetWindowWMInfo = WINRT_GetWindowWMInfo;
     device->free = WINRT_DeleteDevice;
-    WINRT_GlobalSDLVideoDevice = NULL;
+    WINRT_GlobalSDLVideoDevice = device;
 
     return device;
 }