diff options
author | Brian Paul <[email protected]> | 2017-10-03 13:54:31 -0600 |
---|---|---|
committer | Brian Paul <[email protected]> | 2017-10-03 14:32:59 -0600 |
commit | fed856478c0937d3efc74d465f0e455762c6f09c (patch) | |
tree | 724b7ebe11316f30a27638977d62eb60f897d08e /src/mesa/main/bufferobj.c | |
parent | 980fe46d72ec3b2c123f65c4b0c90a3394487aee (diff) |
mesa: silence 'variable may be used uninitialized' warning in bufferobj.c
Found with MinGW optimized build.
Reviewed-by: Charmaine Lee <[email protected]>
Diffstat (limited to 'src/mesa/main/bufferobj.c')
-rw-r--r-- | src/mesa/main/bufferobj.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/mesa/main/bufferobj.c b/src/mesa/main/bufferobj.c index 2da21280819..0b984831043 100644 --- a/src/mesa/main/bufferobj.c +++ b/src/mesa/main/bufferobj.c @@ -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; } } |