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
+3
View File
@@ -24,6 +24,7 @@
#include <QtConcurrent/QtConcurrent>
#include "node/output/viewer/viewer.h"
#include "render/backend/opengl/openglbackend.h"
#include "task/task.h"
OLIVE_NAMESPACE_ENTER
@@ -71,6 +72,8 @@ private:
rational anchor_point_;
OpenGLBackend backend_;
};
OLIVE_NAMESPACE_EXIT