From e713ed812372ecb6062ac03054324ffb0fc948f3 Mon Sep 17 00:00:00 2001 From: Cat Flynn Date: Wed, 2 Aug 2023 01:53:01 +0200 Subject: [PATCH] fix: return negative on error --- src/triangle.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/triangle.cpp b/src/triangle.cpp index 955f50b..5cb7920 100644 --- a/src/triangle.cpp +++ b/src/triangle.cpp @@ -57,7 +57,7 @@ GLint Triangle::getShaderUniformLocation(const std::string& uniformName) if (location == -1) { std::cerr << "Could not find uniform: " << uniformName << std::endl; - return 0; + return -1; } return location;