mirror of
https://github.com/JulianGro/overte.git
synced 2025-04-25 18:55:01 +02:00
Merge pull request #14106 from jherico/fix/mac_gl1
Fix some Mac rendering issues
This commit is contained in:
commit
87b39f690c
2 changed files with 3 additions and 0 deletions
|
@ -24,6 +24,7 @@ Item {
|
|||
|
||||
fragmentShader: {
|
||||
"
|
||||
#version 150 core
|
||||
varying highp vec2 qt_TexCoord0;
|
||||
uniform lowp sampler2D source;
|
||||
uniform lowp sampler2D mask;
|
||||
|
|
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in a new issue