mirror of
https://github.com/RPCS3/rpcs3.git
synced 2024-12-30 15:17:27 +00:00
GL: fix debug build: creation of QOffscreenSurface sends signals from wrong thread
This commit is contained in:
parent
4cfdb71d3a
commit
b176085e14
@ -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 New Issue
Block a user