avoid NullPointer in SDL_GetRenderTarget
diff --git a/src/render/SDL_render.c b/src/render/SDL_render.c
index 9bb953e..1068150 100644
--- a/src/render/SDL_render.c
+++ b/src/render/SDL_render.c
@@ -2263,6 +2263,8 @@ SDL_SetRenderTarget(SDL_Renderer *renderer, SDL_Texture *texture)
SDL_Texture *
SDL_GetRenderTarget(SDL_Renderer *renderer)
{
+ CHECK_RENDERER_MAGIC(renderer, NULL);
+
return renderer->target;
}