util/glsl2spirv: fix appending extra flags

The variable is called `extra`, but what's written is `extra - flags`,
and `flags` is undefined, so if the variable was ever passed there would
be an uncaught exception.

fixes: 9786d9ef2a

Reviewed-by: Luis Felipe Strano Moraes <luis.strano@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19449>
This commit is contained in:
Dylan Baker
2022-11-01 12:49:53 -07:00
committed by Marge Bot
parent 041d9ac3dc
commit 4ffa8a9ac0
+1 -1
View File
@@ -136,7 +136,7 @@ def process_file(args):
cmd_list += ["--variable-name", args.vn]
if args.extra is not None:
cmd_list.append(args.extra-flags)
cmd_list.append(args.extra)
if args.create_entry is not None:
cmd_list += ["--entry-point", args.create_entry]