mirror of
https://github.com/RPCS3/rpcs3.git
synced 2024-11-22 10:42:36 +01: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)
|
if (m_primary_context)
|
||||||
{
|
{
|
||||||
auto surface = new QOffscreenSurface();
|
QOffscreenSurface* surface = nullptr;
|
||||||
surface->setFormat(m_format);
|
|
||||||
// Workaround for the Qt warning: "Attempting to create QWindow-based QOffscreenSurface outside the gui thread. Expect failures."
|
// Workaround for the Qt warning: "Attempting to create QWindow-based QOffscreenSurface outside the gui thread. Expect failures."
|
||||||
Emu.BlockingCallFromMainThread([&]()
|
Emu.BlockingCallFromMainThread([&]()
|
||||||
{
|
{
|
||||||
|
surface = new QOffscreenSurface();
|
||||||
|
surface->setFormat(m_format);
|
||||||
surface->create();
|
surface->create();
|
||||||
});
|
});
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user