mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-11-30 22:20:33 +00:00
WinRT: fixed a crash that occurred on device rotation (oops!)
This commit is contained in:
@@ -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;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user