mirror of
https://github.com/yawut/SDL.git
synced 2026-04-25 15:58:04 -05:00
You need to create the texture with the SDL_TEXTUREACCESS_TARGET flag.
This commit is contained in:
parent
b291116502
commit
c5b09f0da7
|
|
@ -384,7 +384,7 @@ extern DECLSPEC SDL_bool SDLCALL SDL_RenderTargetSupported(SDL_Renderer *rendere
|
||||||
/**
|
/**
|
||||||
* \brief Set a texture as the current rendering target.
|
* \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
|
* \return 0 on success, or -1 on error
|
||||||
*/
|
*/
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user