From e54cfce3928adf291820a0657338384892ec74d3 Mon Sep 17 00:00:00 2001 From: Zach Pomerantz Date: Thu, 7 Apr 2016 00:29:07 -0700 Subject: [PATCH] Disable qml alpha gradients for AMD --- interface/resources/qml/windows-uit/Frame.qml | 6 +++--- interface/resources/qml/windows-uit/Window.qml | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/interface/resources/qml/windows-uit/Frame.qml b/interface/resources/qml/windows-uit/Frame.qml index 918ee21eec..6b9d676bf7 100644 --- a/interface/resources/qml/windows-uit/Frame.qml +++ b/interface/resources/qml/windows-uit/Frame.qml @@ -59,9 +59,9 @@ Item { height: 1.66 * window.height x: (window.width - width) / 2 y: window.height / 2 - 0.375 * height - // FIXME: Alpha gradients display as fuschia under QtQuick 2.5 on OSX. - // Check again when have a later version of QtQuick. - visible: window && window.focus && pane.visible && Qt.platform.os != "osx" + // FIXME: Alpha gradients display as fuschia under QtQuick 2.5 on OSX/AMD + // because shaders are 4.2, and do not include #version declaration. + visible: window && window.focus && pane.visible && Qt.platform.os != "osx" && !~GL.vendor.indexOf("ATI") gradient: Gradient { // GradientStop position 0.5 is at full circumference of circle that fits inside the square. GradientStop { position: 0.0; color: "#ff000000" } // black, 100% opacity diff --git a/interface/resources/qml/windows-uit/Window.qml b/interface/resources/qml/windows-uit/Window.qml index 56f5e6c07d..8748f54291 100644 --- a/interface/resources/qml/windows-uit/Window.qml +++ b/interface/resources/qml/windows-uit/Window.qml @@ -142,9 +142,9 @@ Fadable { } LinearGradient { - // FIXME: Alpha gradients display as fuschia under QtQuick 2.5 on OSX. - // Check again when have a later version of QtQuick. - visible: modality != Qt.ApplicationModal && Qt.platform.os != "osx" + // FIXME: Alpha gradients display as fuschia under QtQuick 2.5 on OSX/AMD + // because shaders are 4.2, and do not include #version declaration. + visible: modality != Qt.ApplicationModal && Qt.platform.os != "osx" && !~GL.vendor.indexOf("ATI") anchors.top: contentBackground.bottom anchors.left: contentBackground.left width: contentBackground.width - 1