mirror of
https://github.com/Relintai/sdl2_frt.git
synced 2025-03-21 02:12:27 +01:00
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. |
||
---|---|---|
.. | ||
SDL_waylanddyn.c | ||
SDL_waylanddyn.h | ||
SDL_waylandevents_c.h | ||
SDL_waylandevents.c | ||
SDL_waylandmouse.c | ||
SDL_waylandmouse.h | ||
SDL_waylandopengles.c | ||
SDL_waylandopengles.h | ||
SDL_waylandsym.h | ||
SDL_waylandtouch.c | ||
SDL_waylandtouch.h | ||
SDL_waylandvideo.c | ||
SDL_waylandvideo.h | ||
SDL_waylandwindow.c | ||
SDL_waylandwindow.h |