浏览代码

Clear fbo for drawing

Just in case ClearBackground() is not used after BeginTextureMode(), it clears fbo to color defined by previous ClearBackground()
pull/444/head
Ray 7 年前
父节点
当前提交
1d5fbef93d
共有 1 个文件被更改,包括 2 次插入0 次删除
  1. +2
    -0
      src/core.c

+ 2
- 0
src/core.c 查看文件

@ -949,6 +949,8 @@ void BeginTextureMode(RenderTexture2D target)
rlglDraw(); // Draw Buffers (Only OpenGL 3+ and ES2)
rlEnableRenderTexture(target.id); // Enable render target
rlClearScreenBuffers(); // Clear render texture buffers
// Set viewport to framebuffer size
rlViewport(0, 0, target.texture.width, target.texture.height);

正在加载...
取消
保存