mesa: initialize "is_layered" variable to silence warning
authorBrian Paul <brianp@vmware.com>
Wed, 22 Jan 2014 18:02:28 +0000 (10:02 -0800)
committerBrian Paul <brianp@vmware.com>
Thu, 23 Jan 2014 15:13:14 +0000 (08:13 -0700)
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
src/mesa/main/fbobject.c

index dc7184ad42a6804c5336f0281ef8498e8e399ecd..943f40bd90a66fc9c4628e913ed4314f6a1ff35a 100644 (file)
@@ -880,7 +880,7 @@ _mesa_test_framebuffer_completeness(struct gl_context *ctx,
    /* Covers max_layer_count, is_layered, and layer_tex_target */
    bool layer_info_valid = false;
    GLuint max_layer_count = 0, att_layer_count;
-   bool is_layered;
+   bool is_layered = false;
    GLenum layer_tex_target = 0;
 
    assert(_mesa_is_user_fbo(fb));