diff --git a/src/video/winrt/SDL_winrtvideo.cpp b/src/video/winrt/SDL_winrtvideo.cpp index 55a705928..756162e5b 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; }