Review RenderTexture drawing usage

Now `BeginTextureMode()` does not clean buffers automatically, that behaviour has been changed because there could be some case (i.e. painting software) where texture buffer does not ned to be cleared; user is responsible of clearing buffers using `ClearBackground()`
This commit is contained in:
Ray
2018-11-19 09:40:01 +01:00
parent 829538249f
commit ed269b8d9a
4 changed files with 15 additions and 13 deletions

View File

@ -430,8 +430,8 @@ void DrawGameplayScreen(void)
else
{
// Draw wave using render target
ClearBackground(BLANK);
BeginTextureMode(waveTarget);
ClearBackground(BLANK);
DrawSamplesMap(samples, totalSamples, currentSample, (Rectangle){ 0, 0, waveTarget.texture.width, waveTarget.texture.height }, MAROON);
EndTextureMode();