mirror of
https://github.com/RPCS3/rpcs3
synced 2024-11-05 16:05:48 +00:00
GL: fix debug build: creation of QOffscreenSurface sends signals from wrong thread
This commit is contained in:
parent
4cfdb71d3a
commit
b176085e14
1 changed files with 4 additions and 2 deletions
|
@ -30,11 +30,13 @@ draw_context_t gl_gs_frame::make_context()
|
|||
|
||||
if (m_primary_context)
|
||||
{
|
||||
auto surface = new QOffscreenSurface();
|
||||
surface->setFormat(m_format);
|
||||
QOffscreenSurface* surface = nullptr;
|
||||
|
||||
// Workaround for the Qt warning: "Attempting to create QWindow-based QOffscreenSurface outside the gui thread. Expect failures."
|
||||
Emu.BlockingCallFromMainThread([&]()
|
||||
{
|
||||
surface = new QOffscreenSurface();
|
||||
surface->setFormat(m_format);
|
||||
surface->create();
|
||||
});
|
||||
|
||||
|
|
Loading…
Reference in a new issue