renderer: ensure offscreen surface is created in main thread

Fixes render crash on some platforms.
This commit is contained in:
itsmattkc
2020-05-27 04:05:01 +10:00
parent 14ac1ada6e
commit a0dec75f2b
4 changed files with 23 additions and 29 deletions
+2 -2
View File
@@ -41,6 +41,8 @@ public:
virtual ~RenderBackend() override;
void Close();
void SetViewerNode(ViewerOutput* viewer_node);
void SetUpdateWithGraph(bool e);
@@ -76,8 +78,6 @@ public slots:
protected:
virtual RenderWorker* CreateNewWorker() = 0;
void Close();
private:
void CopyNodeInputValue(NodeInput* input);
Node *CopyNodeConnections(Node *src_node);