Skip to content

Commit

Permalink
remove pixel shader param from genuniformlocs
Browse files Browse the repository at this point in the history
  • Loading branch information
no-lex committed Sep 13, 2024
1 parent d9bbfb8 commit 99df7c2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/engine/render/shader.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1123,7 +1123,7 @@ void Shader::genattriblocs(const char *vs, const Shader *reusevs)
}

// adds to uniformlocs vector defined uniformlocs
void Shader::genuniformlocs(const char *vs, const char *ps, const Shader *reusevs, const Shader *reuseps)
void Shader::genuniformlocs(const char *vs, const Shader *reusevs, const Shader *reuseps)
{
static int len = std::strlen("//:uniform");
string name, blockname;
Expand Down Expand Up @@ -1220,7 +1220,7 @@ Shader *Shader::setupshader(char *rname, const char *ps, const char *vs, Shader
attriblocs.clear();
uniformlocs.clear();
genattriblocs(vs, reusevs);
genuniformlocs(vs, ps, reusevs, reuseps);
genuniformlocs(vs, reusevs, reuseps);
if(!compile())
{
cleanup(true);
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 @@ -155,7 +155,7 @@ class Shader
* and the location specified in the second parameter
*/
void genattriblocs(const char *vs, const Shader *reusevs);
void genuniformlocs(const char *vs, const char *ps, const Shader *reusevs, const Shader *reuseps);
void genuniformlocs(const char *vs, const Shader *reusevs, const Shader *reuseps);
const Shader *getvariant(int col, int row) const;
};

Expand Down

0 comments on commit 99df7c2

Please sign in to comment.