Skip to content

Commit

Permalink
WinRT: fixed a crash that occurred on device rotation (oops!)
Browse files Browse the repository at this point in the history
  • Loading branch information
DavidLudwig committed Aug 27, 2013
1 parent 1e78c4a commit fa229f3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/video/winrt/SDL_winrtvideo.cpp
Expand Up @@ -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;
}
Expand Down

0 comments on commit fa229f3

Please sign in to comment.