fix: return negative on error
This commit is contained in:
parent
31b58c48b2
commit
e713ed8123
|
@ -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;
|
||||||
|
|
Loading…
Reference in New Issue