summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2019-12-05 09:15:31 +0100
committerRémi Verschelde <rverschelde@gmail.com>2019-12-05 09:15:31 +0100
commitfbfd56c2477f1c05077a13533d11467ad3753ee4 (patch)
tree3d32ea82c6cc1b7cd95ba9fe9b0b4b9245a89fa4
parent129a22cd905d1163641a56a956a69747e4e3c17a (diff)
GLES2: Fix uninitialized members in ShaderGLES2::Version
Fixes #34109.
-rw-r--r--drivers/gles2/shader_gles2.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/drivers/gles2/shader_gles2.h b/drivers/gles2/shader_gles2.h
index c7a6465194..fbca69e0bb 100644
--- a/drivers/gles2/shader_gles2.h
+++ b/drivers/gles2/shader_gles2.h
@@ -118,10 +118,12 @@ private:
uint32_t code_version;
bool ok;
Version() {
- code_version = 0;
+ id = 0;
+ vert_id = 0;
frag_id = 0;
- ok = false;
uniform_location = NULL;
+ code_version = 0;
+ ok = false;
}
};