Просмотр исходного кода

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 3 лет назад
Родитель
Сommit
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

Загрузка…
Отмена
Сохранить