Skip to content

Commit

Permalink
const Shader in defershader()
Browse files Browse the repository at this point in the history
  • Loading branch information
no-lex committed Sep 12, 2024
1 parent 680727b commit f3a12e0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/engine/render/shader.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1528,7 +1528,7 @@ VAR(defershaders, 0, 1, 1);
void defershader(const int *type, const char *name, const char *contents)
{
auto itr = shaders.find(name);
Shader *exists = (itr != shaders.end()) ? &(*itr).second : nullptr;
const Shader *exists = (itr != shaders.end()) ? &(*itr).second : nullptr;
if(exists && !exists->invalid())
{
return;
Expand Down

0 comments on commit f3a12e0

Please sign in to comment.