WinRT: fixed crash when trying, and failing, to load the opengles2 renderer
authorDavid Ludwig <dludwig@pobox.com>
Sun, 02 Nov 2014 10:38:29 -0500
changeset 9214dad92c567585
parent 9213 c9980967d08a
child 9215 6894461723ab
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.
src/video/winrt/SDL_winrtvideo.cpp
     1.1 --- a/src/video/winrt/SDL_winrtvideo.cpp	Sun Nov 02 10:32:25 2014 -0500
     1.2 +++ b/src/video/winrt/SDL_winrtvideo.cpp	Sun Nov 02 10:38:29 2014 -0500
     1.3 @@ -414,6 +414,7 @@
     1.4          // Delete the internal window data:
     1.5          delete data;
     1.6          data = NULL;
     1.7 +        window->driverdata = NULL;
     1.8      }
     1.9  }
    1.10