summaryrefslogtreecommitdiffstats
path: root/src/plugins
diff options
context:
space:
mode:
authorRobert Brock <robert.brock@kdab.com>2016-02-26 09:50:37 +0000
committerSean Harmer <sean.harmer@kdab.com>2016-03-08 13:28:40 +0000
commit2a98c7e7d20bf720c4f4b6444d6317e99face7ec (patch)
tree9c7819883ef88f751beedd8d754c2445064c4edb /src/plugins
parent4301f0c352ad5260536994870a5f1a5c713795a6 (diff)
QPolygonOffset renamed units to depthSteps
Carried changes into the QML examples (planets and shadow map) for both PolygonOffset name changes As per API review Change-Id: Idd2676d53794eb6025696a79ddb59a26ac98b085 Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
Diffstat (limited to 'src/plugins')
-rw-r--r--src/plugins/sceneparsers/gltf/gltfparser.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/sceneparsers/gltf/gltfparser.cpp b/src/plugins/sceneparsers/gltf/gltfparser.cpp
index 3deafa796..61d3d4d9a 100644
--- a/src/plugins/sceneparsers/gltf/gltfparser.cpp
+++ b/src/plugins/sceneparsers/gltf/gltfparser.cpp
@@ -1538,7 +1538,7 @@ QRenderState* GLTFParser::buildState(const QString& functionName, const QJsonVal
type = GL_POLYGON_OFFSET_FILL;
QPolygonOffset *polygonOffset = new QPolygonOffset;
polygonOffset->setScaleFactor((float)values.at(0).toDouble(0.0f));
- polygonOffset->setUnits((float)values.at(1).toDouble(0.0f));
+ polygonOffset->setDepthSteps((float)values.at(1).toDouble(0.0f));
return polygonOffset;
}