mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-13 05:20:45 +00:00
Call CreateWindowingData on the main UI thread
* This allows mac to patch-up the widget to be renderable, and has to happen on the UI thread.
This commit is contained in:
@@ -111,10 +111,6 @@ struct CaptureContextInvoker : ICaptureContext
|
||||
virtual IRGPInterop *GetRGPInterop() override { return m_Ctx.GetRGPInterop(); }
|
||||
virtual const SDFile &GetStructuredFile() override { return m_Ctx.GetStructuredFile(); }
|
||||
virtual WindowingSystem CurWindowingSystem() override { return m_Ctx.CurWindowingSystem(); }
|
||||
virtual WindowingData CreateWindowingData(uintptr_t winId) override
|
||||
{
|
||||
return m_Ctx.CreateWindowingData(winId);
|
||||
}
|
||||
virtual const rdcarray<DebugMessage> &DebugMessages() override { return m_Ctx.DebugMessages(); }
|
||||
virtual int UnreadMessageCount() override { return m_Ctx.UnreadMessageCount(); }
|
||||
virtual void MarkMessagesRead() override { return m_Ctx.MarkMessagesRead(); }
|
||||
@@ -168,6 +164,10 @@ struct CaptureContextInvoker : ICaptureContext
|
||||
return (m_Ctx.*ptr)(params...);
|
||||
}
|
||||
|
||||
virtual WindowingData CreateWindowingData(QWidget *window) override
|
||||
{
|
||||
return InvokeRetFunction<WindowingData>(&ICaptureContext::CreateWindowingData, window);
|
||||
}
|
||||
virtual void LoadCapture(const rdcstr &capture, const rdcstr &origFilename, bool temporary,
|
||||
bool local) override
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user