glsl: Corrected some typos and error messages

v2: left code style/formatting corrections out.

Signed-off-by: Andres Gomez <agomez@igalia.com>
Reviewed-by: Eric Anholt <eric@anholt.net>
This commit is contained in:
Andres Gomez
2017-05-03 21:35:24 +03:00
parent 8aab792e92
commit e4ae4d2789

View File

@@ -2916,7 +2916,8 @@ apply_explicit_binding(struct _mesa_glsl_parse_state *state,
} else { } else {
_mesa_glsl_error(loc, state, _mesa_glsl_error(loc, state,
"the \"binding\" qualifier only applies to uniform " "the \"binding\" qualifier only applies to uniform "
"blocks, opaque variables, or arrays thereof"); "blocks, storage blocks, opaque variables, or arrays "
"thereof");
return; return;
} }
@@ -7470,7 +7471,7 @@ ast_interface_block::hir(exec_list *instructions,
return NULL; return NULL;
} else { } else {
if (expl_align == 0 || expl_align & (expl_align - 1)) { if (expl_align == 0 || expl_align & (expl_align - 1)) {
_mesa_glsl_error(&loc, state, "align layout qualifier in not a " _mesa_glsl_error(&loc, state, "align layout qualifier is not a "
"power of 2."); "power of 2.");
return NULL; return NULL;
} }