summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/sandbox/sprite.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/sandbox/sprite.c b/src/sandbox/sprite.c
index d624e3e..7aafccf 100644
--- a/src/sandbox/sprite.c
+++ b/src/sandbox/sprite.c
@@ -75,6 +75,7 @@ int main(int argc, char *argv[]) {
SDL_Delay(50);
}
+ SDL_DestroyTexture(t1);
SDL_DestroyRenderer(sdl_rend);
SDL_DestroyWindow(sdl_win);
SDL_Quit();
@@ -97,8 +98,8 @@ void my_SDL_init_or_die(char title[], SDL_Rect win_pos, Uint32 init_flags, Uint3
res=SDL_Init(init_flags);
mpl_check(
- res==0,
- {exit(1);} , // Executed code if expression is not true
+ res==0, // Expression to evaluate
+ {exit(1);} , // Code to execute if expression is not true
SDL_LOG_PRIORITY_CRITICAL, // SDL_LogPriority (_CRITICAL, _ERROR, _WARN, _INFO, DEBUG, _VERBOSE)
"SDL_Init failed (%i)",res // var args list starting with a fmt string like in printf()
);