From 8d7577318e7ecb891d8bb1cba8f2c38e7a149bf0 Mon Sep 17 00:00:00 2001 From: Sam Lantinga Date: Sun, 22 Jan 2012 01:29:26 -0500 Subject: [PATCH] You need to create the texture with the SDL_TEXTUREACCESS_TARGET flag. --- include/SDL_render.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/SDL_render.h b/include/SDL_render.h index 2d413df50..7f0c815fa 100644 --- a/include/SDL_render.h +++ b/include/SDL_render.h @@ -384,7 +384,7 @@ extern DECLSPEC SDL_bool SDLCALL SDL_RenderTargetSupported(SDL_Renderer *rendere /** * \brief Set a texture as the current rendering target. * - * \param texture The targeted texture, or NULL for the default render target + * \param texture The targeted texture, which must be created with the SDL_TEXTUREACCESS_TARGET flag, or NULL for the default render target * * \return 0 on success, or -1 on error */