share contexts on all renderthreads

This commit is contained in:
itsmattkc
2019-08-27 23:49:05 +10:00
parent d76218924e
commit 797a4eae16
5 changed files with 26 additions and 3 deletions
+4
View File
@@ -43,6 +43,8 @@ public:
const olive::PixelFormat& format,
const olive::RenderMode& mode);
void SetShareContext(QOpenGLContext* share);
bool Start();
void Stop();
@@ -54,6 +56,8 @@ public:
private:
QOpenGLContext ctx_;
QOpenGLContext* share_ctx_;
QOffscreenSurface surface_;
RenderFramebuffer buffer_;