SDL/src/video/mir
Sam Lantinga d44f392265 Fixed bug 2629 - Mac: crash when calling SDL_DestroyWindow with an active OpenGL context
Alex Szpakowski

Since this commit https://hg.libsdl.org/SDL/rev/59b543340d63 , calling SDL_DestroyWindow will crash the program if the window has an active OpenGL context.

This is because the Cocoa_DestroyWindow code sets the window's driverdata to NULL and then calls [context setWindow:NULL], which tries to access the window's driverdata, resulting in a null pointer dereference.

I have attached a patch which fixes the issue by moving the line which sets the driverdata to NULL to after the lines which call functions that use the driverdata pointer.
2014-07-07 10:33:32 -07:00
..
SDL_mirdyn.c Added a README file regarding WinRT support 2014-04-09 21:29:19 -04:00
SDL_mirdyn.h Added a README file regarding WinRT support 2014-04-09 21:29:19 -04:00
SDL_mirevents.c Assume all motion events are mouse events unless tool_type states otherwise. 2014-06-04 12:55:18 -07:00
SDL_mirevents.h Added a README file regarding WinRT support 2014-04-09 21:29:19 -04:00
SDL_mirframebuffer.c Fix software rendering in the mir backend. The window assumed hardware buffer, which caused testdrawchessboard to fail to mmap a buffer. 2014-05-02 12:33:19 -07:00
SDL_mirframebuffer.h Added a README file regarding WinRT support 2014-04-09 21:29:19 -04:00
SDL_mirmouse.c Added an API function to warp the mouse cursor in global screen space: SDL_WarpMouseGlobal() 2014-06-04 10:55:26 -07:00
SDL_mirmouse.h Added a README file regarding WinRT support 2014-04-09 21:29:19 -04:00
SDL_miropengl.c Added a README file regarding WinRT support 2014-04-09 21:29:19 -04:00
SDL_miropengl.h Added a README file regarding WinRT support 2014-04-09 21:29:19 -04:00
SDL_mirsym.h Added a README file regarding WinRT support 2014-04-09 21:29:19 -04:00
SDL_mirvideo.c Fix software rendering in the mir backend. The window assumed hardware buffer, which caused testdrawchessboard to fail to mmap a buffer. 2014-05-02 12:33:19 -07:00
SDL_mirvideo.h Fix software rendering in the mir backend. The window assumed hardware buffer, which caused testdrawchessboard to fail to mmap a buffer. 2014-05-02 12:33:19 -07:00
SDL_mirwindow.c Fixed bug 2629 - Mac: crash when calling SDL_DestroyWindow with an active OpenGL context 2014-07-07 10:33:32 -07:00
SDL_mirwindow.h Remove code that found its way back into the diff 2014-05-02 12:39:26 -07:00