mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-10 08:10:14 +01:00
mesa: silence 'variable may be used uninitialized' warning in bufferobj.c
Found with MinGW optimized build. Reviewed-by: Charmaine Lee <charmainel@vmware.com>
This commit is contained in:
parent
980fe46d72
commit
fed856478c
1 changed files with 1 additions and 0 deletions
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue