gpu: Update comments above CHECK_DEVICE_MAGIC macro

This commit is contained in:
Ethan Lee
2026-02-01 13:54:27 -05:00
parent de73a4745f
commit 415cc64d2f

View File

@@ -21,7 +21,12 @@
#include "SDL_internal.h"
#include "SDL_sysgpu.h"
// FIXME: This could probably use SDL_ObjectValid
/* Normally this macro would use something like SDL_IsObjectValid, but in GPU's
* case we prioritize performance and be more trusting of application behavior
* than, say, SDL_Render, so trust that applications will be careful about
* disposing the device and its resources.
* -flibit
*/
#define CHECK_DEVICE_MAGIC(device, retval) \
CHECK_PARAM(device == NULL) { \
SDL_SetError("Invalid GPU device"); \