Prevent crashes if freed objects are passed to SDL API functions
Instead of using the magic tag in the object, we'll actually keep track of valid objects Fixes https://github.com/libsdl-org/SDL/issues/9869 Fixes https://github.com/libsdl-org/SDL/issues/9235
This commit is contained in:
parent
57a15933cd
commit
b0e93e4e63
28 changed files with 191 additions and 126 deletions
|
@ -26,7 +26,6 @@
|
|||
#include "../SDL_sysrender.h"
|
||||
#include "SDL_shaders_gl.h"
|
||||
#include "../../video/SDL_pixels_c.h"
|
||||
#include "../../SDL_utils_c.h"
|
||||
|
||||
#ifdef SDL_PLATFORM_MACOS
|
||||
#include <OpenGL/OpenGL.h>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue