You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I was trying to capture screenshots from multiple windows, and I encountered unexpected behavior on MacOS (using the Metal backend).
When I invoke bgfx::requestScreenShot(fbh, "screen");, it appears that the back buffer of the main window is always used, regardless of the value of fbh.
You can reproduce the issue by adding the following lines in the window loop of the 22-windows example:
The screenshot capturing works as expected on Windows (using DX11) and Linux (using Vulkan), but on MacOS, all the screenshots are taken from the main window.
I was trying to capture screenshots from multiple windows, and I encountered unexpected behavior on MacOS (using the Metal backend).
When I invoke
bgfx::requestScreenShot(fbh, "screen");
, it appears that the back buffer of the main window is always used, regardless of the value of fbh.You can reproduce the issue by adding the following lines in the window loop of the
22-windows
example:were
m_frame
is just a frame counter.Modified example here and diff here.
The screenshot capturing works as expected on Windows (using DX11) and Linux (using Vulkan), but on MacOS, all the screenshots are taken from the main window.
This is the patch: screenshot.patch.zip
The text was updated successfully, but these errors were encountered: