diff options
| author | Ray <[email protected]> | 2022-08-01 10:05:40 +0200 |
|---|---|---|
| committer | Ray <[email protected]> | 2022-08-01 10:05:40 +0200 |
| commit | 2e5fc3d0c276d25ed51b46e4b3d0bf60445b9cb2 (patch) | |
| tree | 661234bb100b1c1e1a65d357565726e7bfae0637 /src | |
| parent | f5968159736edb9385418ee14451758983125990 (diff) | |
| download | raylib-2e5fc3d0c276d25ed51b46e4b3d0bf60445b9cb2.tar.gz raylib-2e5fc3d0c276d25ed51b46e4b3d0bf60445b9cb2.zip | |
Avoid cleaning the front buffer to a specific color!
ISSUE: Front buffer and backbuffer have different clear colors, if no `ClearBackground()` is called by user, there is screen flickering on buffers swap.
It's up to the user to call `ClearBackground()` if desired
Diffstat (limited to 'src')
| -rw-r--r-- | src/rcore.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/src/rcore.c b/src/rcore.c index c8c66ebf..4eeaa574 100644 --- a/src/rcore.c +++ b/src/rcore.c @@ -4629,8 +4629,6 @@ static bool InitGraphicsDevice(int width, int height) // NOTE: It updated CORE.Window.render.width and CORE.Window.render.height SetupViewport(CORE.Window.currentFbo.width, CORE.Window.currentFbo.height); - ClearBackground(RAYWHITE); // Default background color for raylib games :P - #if defined(PLATFORM_ANDROID) CORE.Window.ready = true; #endif |
