Преглед на файлове

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

David Ludwig преди 12 години
родител
ревизия
fa229f3790
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  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->PumpEvents = WINRT_PumpEvents;
     device->GetWindowWMInfo = WINRT_GetWindowWMInfo;
     device->GetWindowWMInfo = WINRT_GetWindowWMInfo;
     device->free = WINRT_DeleteDevice;
     device->free = WINRT_DeleteDevice;
-    WINRT_GlobalSDLVideoDevice = NULL;
+    WINRT_GlobalSDLVideoDevice = device;
 
 
     return device;
     return device;
 }
 }