ScreenPanelNative: Don't try to render the framebuffer if the emulator is not actually active.

This fixes an issue where the window draws with a gray background in macOS, and is see-through on Wayland-based desktops.
This commit is contained in:
Nadia Holmquist Pedersen
2021-12-09 01:57:02 +01:00
parent 14c6bba21f
commit f1c9b42b45
2 changed files with 24 additions and 15 deletions

View File

@ -59,6 +59,7 @@ public:
void emuFrameStep();
bool emuIsRunning();
bool emuIsActive();
int FrontBuffer = 0;
QMutex FrontBufferLock;