WinRT: fixed crash when trying, and failing, to load the opengles2 renderer

The crash would occur when a WinRT app explicitly tried to create an
SDL_Renderer using the "opengles2" renderer (via SDL_HINT_RENDER_DRIVER), but
OpenGL ES 2 / ANGLE .dlls weren't packaged in the app.
This commit is contained in:
David Ludwig 2014-11-02 10:38:29 -05:00
parent bbe1df0d51
commit 577ef5e0b6
1 changed files with 1 additions and 0 deletions

View File

@ -414,6 +414,7 @@ WINRT_DestroyWindow(_THIS, SDL_Window * window)
// Delete the internal window data: // Delete the internal window data:
delete data; delete data;
data = NULL; data = NULL;
window->driverdata = NULL;
} }
} }