Commit fa229f379093a3e29ac578dae9169da43fabf57f

David Ludwig 2013-08-27T12:22:02

WinRT: fixed a crash that occurred on device rotation (oops!)

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/src/video/winrt/SDL_winrtvideo.cpp b/src/video/winrt/SDL_winrtvideo.cpp
index 55a7059..756162e 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;
 }