summaryrefslogtreecommitdiff
path: root/gfx/gl/sceneShader.cpp
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2024-08-26 13:55:32 +0100
committerDan Goodliffe <dan@randomdan.homeip.net>2024-08-26 13:59:57 +0100
commit10e0fee323e6277ba73ee1fc148417882bc381c3 (patch)
tree86d83581b6b39d3a5f2f11a420d35440106d41e5 /gfx/gl/sceneShader.cpp
parentAdd a foliage vertex array for just the location data (diff)
downloadilt-10e0fee323e6277ba73ee1fc148417882bc381c3.tar.bz2
ilt-10e0fee323e6277ba73ee1fc148417882bc381c3.tar.xz
ilt-10e0fee323e6277ba73ee1fc148417882bc381c3.zip
Add helper to test if a uniform was found
Diffstat (limited to 'gfx/gl/sceneShader.cpp')
-rw-r--r--gfx/gl/sceneShader.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/gfx/gl/sceneShader.cpp b/gfx/gl/sceneShader.cpp
index 4cbccb3..571538a 100644
--- a/gfx/gl/sceneShader.cpp
+++ b/gfx/gl/sceneShader.cpp
@@ -65,7 +65,7 @@ SceneShader::SceneProgram::setViewProjection(const GlobalPosition3D & viewPoint,
void
SceneShader::SceneProgram::setViewPort(const ViewPort & viewPort) const
{
- if (viewPortLoc >= 0) {
+ if (viewPortLoc) {
glUseProgram(*this);
glUniform(viewPortLoc, viewPort);
}