diff options
author | Rémi Verschelde <rverschelde@gmail.com> | 2019-05-29 16:40:06 +0200 |
---|---|---|
committer | Rémi Verschelde <rverschelde@gmail.com> | 2019-05-29 16:40:06 +0200 |
commit | c2e2bcbca92ab3fda08a6800d3fbd95378496ca3 (patch) | |
tree | 8cd87a7c446c44f316e184554df518835c14cc49 /drivers/gles2 | |
parent | b374a9ff69d272e472c619417bf3ed251037eb19 (diff) |
Fix -Werror=maybe-uninitialized in GLES2 on release builds
Issue introduced in #28796.
Diffstat (limited to 'drivers/gles2')
-rw-r--r-- | drivers/gles2/rasterizer_scene_gles2.cpp | 3 |
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; |