Skip to content

Commit

Permalink
mathbase: replace texture() calls
Browse files Browse the repository at this point in the history
  • Loading branch information
itsmattkc committed Jun 6, 2021
1 parent 2fdb85e commit 8d18a8d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/node/math/math/mathbase.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit 8d18a8d

Please sign in to comment.