share contexts on all renderthreads
This commit is contained in:
@@ -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_;
|
||||
|
||||
Reference in New Issue
Block a user