瀏覽代碼

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
pull/2605/head
Ray 2 年之前
父節點
當前提交
2e5fc3d0c2
共有 1 個檔案被更改,包括 0 行新增2 行删除
  1. +0
    -2
      src/rcore.c

+ 0
- 2
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

Loading…
取消
儲存