Explorar el Código

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 hace 7 años
padre
commit
1d5fbef93d
Se han modificado 1 ficheros con 2 adiciones y 0 borrados
  1. +2
    -0
      src/core.c

+ 2
- 0
src/core.c Ver fichero

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

Cargando…
Cancelar
Guardar