diff options
| author | GoblinBob <[email protected]> | 2018-11-07 21:06:00 +0100 |
|---|---|---|
| committer | GitHub <[email protected]> | 2018-11-07 21:06:00 +0100 |
| commit | 8e219272e5ab1dcc311ed9317cf98918bd5a7fa3 (patch) | |
| tree | 6145177a88b5b3845fa2ba8cf61039d28e8e720b /src/core.c | |
| parent | b356ef5564e7fa2f4e26232cac451f9d63984ba5 (diff) | |
| download | raylib-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.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -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); |
