mirror of
https://github.com/overte-org/overte.git
synced 2025-04-22 23:53:48 +02:00
Attempting to fix rendering issues on 2015 Macs
This commit is contained in:
parent
9706a44ca1
commit
82310bb499
1 changed files with 1 additions and 3 deletions
|
@ -34,11 +34,9 @@ OffscreenGlCanvas::~OffscreenGlCanvas() {
|
|||
void OffscreenGlCanvas::create(QOpenGLContext* sharedContext) {
|
||||
if (nullptr != sharedContext) {
|
||||
sharedContext->doneCurrent();
|
||||
_context->setFormat(sharedContext->format());
|
||||
_context->setShareContext(sharedContext);
|
||||
} else {
|
||||
_context->setFormat(getDefaultOpenGlSurfaceFormat());
|
||||
}
|
||||
_context->setFormat(getDefaultOpenGlSurfaceFormat());
|
||||
_context->create();
|
||||
|
||||
_offscreenSurface->setFormat(_context->format());
|
||||
|
|
Loading…
Reference in a new issue