mesa: silence 'variable may be used uninitialized' warning in bufferobj.c
authorBrian Paul <brianp@vmware.com>
Tue, 3 Oct 2017 19:54:31 +0000 (13:54 -0600)
committerBrian Paul <brianp@vmware.com>
Tue, 3 Oct 2017 20:32:59 +0000 (14:32 -0600)
Found with MinGW optimized build.

Reviewed-by: Charmaine Lee <charmainel@vmware.com>
src/mesa/main/bufferobj.c

index 2da21280819aa83cc9038a249da28d47f2588ae1..0b9848310439fd7544f3615aa05b96b3d3921281 100644 (file)
@@ -3287,6 +3287,7 @@ get_map_buffer_access_flags(struct gl_context *ctx, GLenum access,
       *flags = GL_MAP_READ_BIT | GL_MAP_WRITE_BIT;
       return _mesa_is_desktop_gl(ctx);
    default:
+      *flags = 0;
       return false;
    }
 }