diff --git a/interface/resources/qml/hifi/avatarapp/TransparencyMask.qml b/interface/resources/qml/hifi/avatarapp/TransparencyMask.qml index 6c50a6093a..db9b4f06ae 100644 --- a/interface/resources/qml/hifi/avatarapp/TransparencyMask.qml +++ b/interface/resources/qml/hifi/avatarapp/TransparencyMask.qml @@ -24,6 +24,7 @@ Item { fragmentShader: { " +#version 150 core varying highp vec2 qt_TexCoord0; uniform lowp sampler2D source; uniform lowp sampler2D mask; diff --git a/libraries/qml/src/qml/impl/SharedObject.cpp b/libraries/qml/src/qml/impl/SharedObject.cpp index 3b8d0bb743..259defdb48 100644 --- a/libraries/qml/src/qml/impl/SharedObject.cpp +++ b/libraries/qml/src/qml/impl/SharedObject.cpp @@ -19,6 +19,7 @@ #include #include #include +#include #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);