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() ?
This commit is contained in:
GoblinBob 2018-11-07 21:06:00 +01:00 committed by GitHub
parent b356ef5564
commit 8e219272e5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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);