mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-06 01:50:38 +00:00
Change RenderManager invoke method to be std::function to allow lambdas
This commit is contained in:
@@ -3,6 +3,8 @@
|
||||
|
||||
#include "renderdoc_replay.h"
|
||||
|
||||
#include <functional>
|
||||
|
||||
#include <QString>
|
||||
#include <QThread>
|
||||
#include <QMutex>
|
||||
@@ -17,7 +19,7 @@ class RenderManager : public QThread
|
||||
void run();
|
||||
|
||||
public:
|
||||
typedef void (*InvokeMethod)(IReplayRenderer *r);
|
||||
typedef std::function<void(IReplayRenderer*)> InvokeMethod;
|
||||
|
||||
RenderManager();
|
||||
~RenderManager();
|
||||
|
||||
Reference in New Issue
Block a user