bkaradzic / bgfx

Cross-platform, graphics API agnostic, "Bring Your Own Engine/Framework" style rendering library.

Home Page:https://bkaradzic.github.io/bgfx/overview.html

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Shifted window buffer location when resizing a window

wobbier opened this issue · comments

When resizing a window in the examples, notice that the window buffer is rendering from the top left of the window. Weirdly enough moving the window fixes this.

To Reproduce
Steps to reproduce the behavior:

  1. Set up a new repo via the same steps as the docs.
  2. Build the cubes example
  3. Resize the window and notice flickering / offset buffer.

Expected behavior
Buffer is displayed from client top left.

Screenshots
After resizing the window:
image

After moving the window:
2023-12-27 (4)

Additional context
I'm using a fresh pull, on windows 10.

This does not happen when using OpenGL or Vulkan backends (they seem to not update the screen when resizing), Only happens on DX11 and DX12.

I've also repro'd this with the SDL entry implementation and the default win32 window implementation.
This only happens when drag resizing a window by the borders, snapping and maximize/minimize display correctly.

OK so it seems to be related to drivers, updating fixed the issue :)