Merge pull request #14106 from jherico/fix/mac_gl1

Fix some Mac rendering issues
This commit is contained in:
John Conklin II 2018-10-01 16:35:57 -07:00 committed by GitHub
commit 87b39f690c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 0 deletions

View file

@ -24,6 +24,7 @@ Item {
fragmentShader: {
"
#version 150 core
varying highp vec2 qt_TexCoord0;
uniform lowp sampler2D source;
uniform lowp sampler2D mask;

View file

@ -19,6 +19,7 @@
#include <NumericalConstants.h>
#include <shared/NsightHelpers.h>
#include <gl/QOpenGLContextWrapper.h>
#include <gl/GLHelpers.h>
#include "../OffscreenSurface.h"
#include "../Logging.h"
@ -67,6 +68,7 @@ SharedObject::SharedObject() {
// so we wait until after its ctor to move object/context to this thread.
QQuickWindow::setDefaultAlphaBuffer(true);
_quickWindow = new QQuickWindow(_renderControl);
_quickWindow->setFormat(getDefaultOpenGLSurfaceFormat());
_quickWindow->setColor(QColor(255, 255, 255, 0));
_quickWindow->setClearBeforeRendering(true);