summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorAaron Franke <arnfranke@yahoo.com>2018-11-27 21:58:00 -0500
committerAaron Franke <arnfranke@yahoo.com>2018-11-28 05:03:24 -0500
commitcb01268562a47e6a1c32559f58fbadd46e52d304 (patch)
tree8466e05cbf670863759899e0fd7d67d6a44ca1cb /drivers
parentaa08ef2bed34510cfb18ce3e1e5cdd9c009981be (diff)
Fix many errors found by PVS-Studio
Fix errors 2, 3, 4, 6, 8, 9, 11, 12, 13, 14, and 15.
Diffstat (limited to 'drivers')
-rw-r--r--drivers/gles2/shader_gles2.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gles2/shader_gles2.cpp b/drivers/gles2/shader_gles2.cpp
index c5a67d4e75..84bd413abb 100644
--- a/drivers/gles2/shader_gles2.cpp
+++ b/drivers/gles2/shader_gles2.cpp
@@ -99,7 +99,7 @@ void ShaderGLES2::bind_uniforms() {
const Map<uint32_t, CameraMatrix>::Element *C = uniform_cameras.front();
while (C) {
- int idx = E->key();
+ int idx = C->key();
int location = version->uniform_location[idx];
if (location < 0) {