summaryrefslogtreecommitdiffhomepage
path: root/src/core.c
diff options
context:
space:
mode:
authorGoblinBob <[email protected]>2018-11-07 21:06:00 +0100
committerGitHub <[email protected]>2018-11-07 21:06:00 +0100
commit8e219272e5ab1dcc311ed9317cf98918bd5a7fa3 (patch)
tree6145177a88b5b3845fa2ba8cf61039d28e8e720b /src/core.c
parentb356ef5564e7fa2f4e26232cac451f9d63984ba5 (diff)
downloadraylib-8e219272e5ab1dcc311ed9317cf98918bd5a7fa3.tar.gz
raylib-8e219272e5ab1dcc311ed9317cf98918bd5a7fa3.zip
Update core.c
Some projects need the buffer to not be empited when drawing to the render texture. I would suggest making maybe a variation of the function if you'd like to keep backwards compatibility, maybe like: BeginTextureModeNoClear() ?
Diffstat (limited to 'src/core.c')
-rw-r--r--src/core.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/core.c b/src/core.c
index 5f12fb72..7d64ae27 100644
--- a/src/core.c
+++ b/src/core.c
@@ -1170,7 +1170,9 @@ void BeginTextureMode(RenderTexture2D target)
rlEnableRenderTexture(target.id); // Enable render target
- rlClearScreenBuffers(); // Clear render texture buffers
+ // Some projects need the buffer to not be empited when drawing to
+ // the render texture.
+ //rlClearScreenBuffers(); // Clear render texture buffers
// Set viewport to framebuffer size
rlViewport(0, 0, target.texture.width, target.texture.height);