mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 06:58:05 +02:00
glsl: do not crash if string literal is used outside of #include/#line
Fixes: 67b32190f3
Closes: https://gitlab.freedesktop.org/mesa/mesa/issues/2619
Signed-off-by: Danylo Piliaiev <danylo.piliaiev@globallogic.com>
Reviewed-by: Timothy Arceri <tarceri@itsqueeze.com>
Tested-by: Marge Bot <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4146>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4146>
This commit is contained in:
parent
f8051f77ea
commit
1305b93274
1 changed files with 1 additions and 0 deletions
|
|
@ -1248,6 +1248,7 @@ _token_print(struct _mesa_string_buffer *out, token_t *token)
|
|||
break;
|
||||
case IDENTIFIER:
|
||||
case INTEGER_STRING:
|
||||
case PATH:
|
||||
case OTHER:
|
||||
_mesa_string_buffer_append(out, token->value.str);
|
||||
break;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue