Skip to content

Commit

Permalink
const qualify shader::setvariant() param
Browse files Browse the repository at this point in the history
  • Loading branch information
no-lex committed Sep 11, 2024
1 parent ef3e8e7 commit 8b24631
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/engine/render/shader.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -818,7 +818,7 @@ void Shader::setvariant(int col, int row, const Slot &slot)
lastshader->setslotparams(slot);
}

void Shader::setvariant(int col, int row, Slot &slot, const VSlot &vslot)
void Shader::setvariant(int col, int row, const Slot &slot, const VSlot &vslot)
{
if(!loaded())
{
Expand Down
2 changes: 1 addition & 1 deletion src/engine/render/shaderparam.h
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ class Shader
void addvariant(int row, Shader *s);
void setvariant(int col, int row);
void setvariant(int col, int row, const Slot &slot);
void setvariant(int col, int row, Slot &slot, const VSlot &vslot);
void setvariant(int col, int row, const Slot &slot, const VSlot &vslot);
void set();
void set(const Slot &slot);
void set(Slot &slot, const VSlot &vslot);
Expand Down

0 comments on commit 8b24631

Please sign in to comment.