Merge pull request #29284 from akien-mga/gles2-release-maybe-uninitialized

Fix -Werror=maybe-uninitialized in GLES2 on release builds
This commit is contained in:
Rémi Verschelde 2019-05-29 17:19:22 +02:00 committed by GitHub
commit 23a9ba68e6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -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;