mirror of
https://github.com/Ryujinx/SDL.git
synced 2026-04-16 13:28:53 +00: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_mirdyn.c | ||
| SDL_mirdyn.h | ||
| SDL_mirevents.c | ||
| SDL_mirevents.h | ||
| SDL_mirframebuffer.c | ||
| SDL_mirframebuffer.h | ||
| SDL_mirmouse.c | ||
| SDL_mirmouse.h | ||
| SDL_miropengl.c | ||
| SDL_miropengl.h | ||
| SDL_mirsym.h | ||
| SDL_mirvideo.c | ||
| SDL_mirvideo.h | ||
| SDL_mirwindow.c | ||
| SDL_mirwindow.h | ||