sdl2_frt/src/video/wayland
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_waylanddyn.c Added a README file regarding WinRT support 2014-04-09 21:29:19 -04:00
SDL_waylanddyn.h Added a README file regarding WinRT support 2014-04-09 21:29:19 -04:00
SDL_waylandevents_c.h Added a README file regarding WinRT support 2014-04-09 21:29:19 -04:00
SDL_waylandevents.c Added a README file regarding WinRT support 2014-04-09 21:29:19 -04:00
SDL_waylandmouse.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_waylandmouse.h Added a README file regarding WinRT support 2014-04-09 21:29:19 -04:00
SDL_waylandopengles.c Added a README file regarding WinRT support 2014-04-09 21:29:19 -04:00
SDL_waylandopengles.h Added a README file regarding WinRT support 2014-04-09 21:29:19 -04:00
SDL_waylandsym.h Added a README file regarding WinRT support 2014-04-09 21:29:19 -04:00
SDL_waylandtouch.c Fix compiler warning 2014-06-23 09:18:31 -03:00
SDL_waylandtouch.h Added a README file regarding WinRT support 2014-04-09 21:29:19 -04:00
SDL_waylandvideo.c Added a README file regarding WinRT support 2014-04-09 21:29:19 -04:00
SDL_waylandvideo.h Added a README file regarding WinRT support 2014-04-09 21:29:19 -04:00
SDL_waylandwindow.c Fixed bug 2629 - Mac: crash when calling SDL_DestroyWindow with an active OpenGL context 2014-07-07 10:33:32 -07:00
SDL_waylandwindow.h Added a README file regarding WinRT support 2014-04-09 21:29:19 -04:00