mirror of
https://bitbucket.org/librepilot/librepilot.git
synced 2025-02-20 10:54:14 +01:00
LP-208 Fixing OSG/OSGE related Qt 5.6 issues.
This commit is contained in:
parent
c4e0a9ebad
commit
c3c6ec4393
@ -581,6 +581,7 @@ OSGViewport::OSGViewport(QQuickItem *parent) : QQuickFramebufferObject(parent),
|
||||
{
|
||||
qDebug() << "OSGViewport::OSGViewport";
|
||||
// setClearBeforeRendering(false);
|
||||
setMirrorVertically(true);
|
||||
setAcceptHoverEvents(true);
|
||||
setAcceptedMouseButtons(Qt::AllButtons);
|
||||
}
|
||||
@ -682,10 +683,6 @@ QSGNode *OSGViewport::updatePaintNode(QSGNode *node, QQuickItem::UpdatePaintNode
|
||||
qDebug() << "OSGViewport::updatePaintNode - set transform";
|
||||
node = QQuickFramebufferObject::updatePaintNode(node, nodeData);
|
||||
QSGSimpleTextureNode *n = static_cast<QSGSimpleTextureNode *>(node);
|
||||
if (n) {
|
||||
// flip Y axis
|
||||
n->setTextureCoordinatesTransform(QSGSimpleTextureNode::MirrorVertically);
|
||||
}
|
||||
return node;
|
||||
}
|
||||
return QQuickFramebufferObject::updatePaintNode(node, nodeData);
|
||||
|
@ -5,7 +5,11 @@ QMAKE_CXXFLAGS += -Wno-unused-parameter
|
||||
#win32:CONFIG(debug, debug|release):DS = "d"
|
||||
|
||||
contains(QT_ARCH, x86_64) {
|
||||
LIB_DIR_NAME = lib64
|
||||
macx {
|
||||
LIB_DIR_NAME = lib
|
||||
} else {
|
||||
LIB_DIR_NAME = lib64
|
||||
}
|
||||
} else {
|
||||
LIB_DIR_NAME = lib
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user