Skip to content
This repository has been archived by the owner on Feb 11, 2021. It is now read-only.

Commit

Permalink
You need to create the texture with the SDL_TEXTUREACCESS_TARGET flag.
Browse files Browse the repository at this point in the history
  • Loading branch information
slouken committed Jan 22, 2012
1 parent d515b34 commit 8d75773
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/SDL_render.h
Expand Up @@ -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
*/
Expand Down

0 comments on commit 8d75773

Please sign in to comment.