mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-09-21 05:05:44 +00:00
For convenience expose InvokeOntoUIThread directly from CaptureContext
* This can be useful in python scripts and it's odd to have to go via the MiniQtHelper just for this.
This commit is contained in:
@@ -1340,6 +1340,10 @@ struct CaptureContextInvoker : UIThreadInvoker<ICaptureContext>
|
||||
// pass-through functions that don't need the UI thread
|
||||
///////////////////////////////////////////////////////////////////////
|
||||
//
|
||||
virtual void InvokeOntoUIThread(std::function<void()> callback) override
|
||||
{
|
||||
return m_Obj.InvokeOntoUIThread(callback);
|
||||
}
|
||||
virtual rdcstr TempCaptureFilename(const rdcstr &appname) override
|
||||
{
|
||||
return m_Obj.TempCaptureFilename(appname);
|
||||
|
||||
Reference in New Issue
Block a user