Fix some Mac rendering issues

This commit is contained in:
Bradley Austin Davis 2018-09-27 19:21:50 -07:00
parent 0b185c6890
commit 3dea4fd10a
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);