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;