Explorar o código

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

David Ludwig %!s(int64=12) %!d(string=hai) anos
pai
achega
fa229f3790
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/video/winrt/SDL_winrtvideo.cpp

+ 1 - 1
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;
 }