mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-02-05 10:30:26 +01:00
tgsi: Fix error handling.
This commit is contained in:
parent
82f11f7e7c
commit
fef7f2b070
1 changed files with 1 additions and 1 deletions
|
|
@ -263,7 +263,7 @@ tgsi_sanity_check(
|
|||
ctx.errors = 0;
|
||||
ctx.warnings = 0;
|
||||
|
||||
if (tgsi_iterate_shader( tokens, &ctx.iter ) == -1)
|
||||
if (!tgsi_iterate_shader( tokens, &ctx.iter ))
|
||||
return FALSE;
|
||||
|
||||
return ctx.errors == 0;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue