summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2019-05-29 16:40:06 +0200
committerRémi Verschelde <rverschelde@gmail.com>2019-05-29 16:40:06 +0200
commitc2e2bcbca92ab3fda08a6800d3fbd95378496ca3 (patch)
tree8cd87a7c446c44f316e184554df518835c14cc49
parentb374a9ff69d272e472c619417bf3ed251037eb19 (diff)
Fix -Werror=maybe-uninitialized in GLES2 on release builds
Issue introduced in #28796.
-rw-r--r--drivers/gles2/rasterizer_scene_gles2.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/gles2/rasterizer_scene_gles2.cpp b/drivers/gles2/rasterizer_scene_gles2.cpp
index 268b0f1c90..83e1196979 100644
--- a/drivers/gles2/rasterizer_scene_gles2.cpp
+++ b/drivers/gles2/rasterizer_scene_gles2.cpp
@@ -2695,7 +2695,8 @@ void RasterizerSceneGLES2::render_scene(const Transform &p_cam_transform, const
Environment *env = NULL;
int viewport_width, viewport_height;
- int viewport_x, viewport_y;
+ int viewport_x = 0;
+ int viewport_y = 0;
bool probe_interior = false;
bool reverse_cull = false;