From 8d18a8d9d88f65a2b7d8272e073d175e67243140 Mon Sep 17 00:00:00 2001 From: itsmattkc Date: Mon, 7 Jun 2021 00:49:55 +1000 Subject: [PATCH] mathbase: replace texture() calls --- app/node/math/math/mathbase.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/node/math/math/mathbase.cpp b/app/node/math/math/mathbase.cpp index 8072de0dd..5011bf4f4 100644 --- a/app/node/math/math/mathbase.cpp +++ b/app/node/math/math/mathbase.cpp @@ -47,7 +47,7 @@ ShaderCode MathNodeBase::GetShaderCodeInternal(const QString &shader_id, const Q const QString& mat_in = (type_a == NodeValue::kTexture) ? param_b_in : param_a_in; // No-op frag shader (can we return QString() instead?) - operation = QStringLiteral("texture(%1, ove_texcoord)").arg(tex_in); + operation = QStringLiteral("texture2D(%1, ove_texcoord)").arg(tex_in); vert = QStringLiteral("uniform mat4 %1;\n" "\n" @@ -128,7 +128,7 @@ QString MathNodeBase::GetShaderUniformType(const olive::NodeValue::Type &type) QString MathNodeBase::GetShaderVariableCall(const QString &input_id, const NodeValue::Type &type, const QString& coord_op) { if (type == NodeValue::kTexture) { - return QStringLiteral("texture(%1, ove_texcoord%2)").arg(input_id, coord_op); + return QStringLiteral("texture2D(%1, ove_texcoord%2)").arg(input_id, coord_op); } return input_id;