Showing a previous frame when opening Snipping Tool with OpenGL RenderSystem
System Information
- Ogre Version: 14.3.4
- Operating System / Platform: Windows 10 22H2
- RenderSystem: Open GL, Open GL 3+ and Open GL ES 2.X
Detailed description
When trying to make a screenshot with the Snipping tool (Win + Shift + S), the game window will show a previous frame. (which doesn't represent the current state of the game)
This issue seems to be related to the RenderSystem because DirectX 9 and 11 do not have this issue.
Steps to reproduce:
- Open the SampleBrower in full screen
- Launch a sample (for spotting the issue more easily)
- Alt + Tab your way out of the application
- Alt + Tab back to the application
- Move around
- Do Windows + Shift + S to open the snipping tool
- Notice that it's showing the state before the first Alt + Tab
Additional note: You can actually see this previous frame from the preview when you hover the app on the taskbar.
sound more of a windows snipping tool issue then an Ogre issue
Well, I wouldn't think so as it doesn't behave the same between Open GL RenderSystem and DirectX RenderSystem. ~~The issue is precisely that the preview frame (or whatever it is called) doesn't update in real time with OpenGL compared to DirectX. And for some odd reasons the Snipping Tool will use this frame probably since the screen is in full screen and it will no longer focus the application window therefore showing the preview frame instead.~~ Irrelevant after testing, the preview isn't updated all time either on DirectX, though there is still something happening with OpenGL that pushes the window to show the preview frame instead of the current frame.
adding Bites component as this might be related to how windowing is done by SDL2.