fix: return negative on error

This commit is contained in:
Cat Flynn 2023-08-02 01:53:01 +02:00
parent 31b58c48b2
commit e713ed8123
1 changed files with 1 additions and 1 deletions

View File

@ -57,7 +57,7 @@ GLint Triangle::getShaderUniformLocation(const std::string& uniformName)
if (location == -1) if (location == -1)
{ {
std::cerr << "Could not find uniform: " << uniformName << std::endl; std::cerr << "Could not find uniform: " << uniformName << std::endl;
return 0; return -1;
} }
return location; return location;