mirror of
https://github.com/raysan5/raylib.git
synced 2025-10-06 09:56:28 +00:00
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
This commit is contained in:
@@ -4629,8 +4629,6 @@ static bool InitGraphicsDevice(int width, int height)
|
|||||||
// NOTE: It updated CORE.Window.render.width and CORE.Window.render.height
|
// NOTE: It updated CORE.Window.render.width and CORE.Window.render.height
|
||||||
SetupViewport(CORE.Window.currentFbo.width, CORE.Window.currentFbo.height);
|
SetupViewport(CORE.Window.currentFbo.width, CORE.Window.currentFbo.height);
|
||||||
|
|
||||||
ClearBackground(RAYWHITE); // Default background color for raylib games :P
|
|
||||||
|
|
||||||
#if defined(PLATFORM_ANDROID)
|
#if defined(PLATFORM_ANDROID)
|
||||||
CORE.Window.ready = true;
|
CORE.Window.ready = true;
|
||||||
#endif
|
#endif
|
||||||
|
Reference in New Issue
Block a user