Browse Source

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() ?
pull/683/head
GoblinBob 6 years ago
committed by GitHub
parent
commit
8e219272e5
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 1 deletions
  1. +3
    -1
      src/core.c

+ 3
- 1
src/core.c 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);

Loading…
Cancel
Save