mirror of
https://github.com/raysan5/raylib.git
synced 2025-12-25 10:22:33 -05:00
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:
@ -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();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user