mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 06:58:05 +02:00
mesa: Add an extra clarifying set of braces to getter checking.
For this multi-page single statement, my thought the end was to that the next block was mis-indented, rather than that the dropped indentation actually indicated the end of the loop.
This commit is contained in:
parent
2534f0a57d
commit
eac1199604
1 changed files with 2 additions and 1 deletions
|
|
@ -905,7 +905,7 @@ check_extra(struct gl_context *ctx, const char *func, const struct value_desc *d
|
|||
GLboolean api_found = GL_FALSE;
|
||||
const int *e;
|
||||
|
||||
for (e = d->extra; *e != EXTRA_END; e++)
|
||||
for (e = d->extra; *e != EXTRA_END; e++) {
|
||||
switch (*e) {
|
||||
case EXTRA_VERSION_30:
|
||||
api_check = GL_TRUE;
|
||||
|
|
@ -987,6 +987,7 @@ check_extra(struct gl_context *ctx, const char *func, const struct value_desc *d
|
|||
api_found = GL_TRUE;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
if (api_check && !api_found) {
|
||||
_mesa_error(ctx, GL_INVALID_ENUM, "%s(pname=%s)", func,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue