mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-25 00:00:11 +01:00
main/version: make sure all the output variables get set in get_gl_override
This fixes 2 warnings in gcc 5.1. Reviewed-by: Brian Paul <brianp@vmware.com> Reviewed-by: Marek Olšák <marek.olsak@amd.com> Signed-off-by: Martin Peres <martin.peres@linux.intel.com>
This commit is contained in:
parent
56e38edc96
commit
184e4de3a1
1 changed files with 2 additions and 1 deletions
|
|
@ -63,7 +63,7 @@ get_gl_override(gl_api api, int *version, bool *fwd_context,
|
|||
static bool compat_suffix = false;
|
||||
|
||||
if (api == API_OPENGLES)
|
||||
return;
|
||||
goto exit;
|
||||
|
||||
if (override_version < 0) {
|
||||
override_version = 0;
|
||||
|
|
@ -93,6 +93,7 @@ get_gl_override(gl_api api, int *version, bool *fwd_context,
|
|||
}
|
||||
}
|
||||
|
||||
exit:
|
||||
*version = override_version;
|
||||
*fwd_context = fc_suffix;
|
||||
*compat_context = compat_suffix;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue