mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-06 11:38:05 +02:00
mesa/ffvs: use unreachable instead of assert
Otherwise I trigger a compiler warning here about a potentially unwritten variable. Let's just make it clear to the compiler what's going on. Reviewed-by: Alyssa Rosenzweig <alyssa@rosenzweig.io> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/26064>
This commit is contained in:
parent
3626d07d66
commit
15291cdefa
1 changed files with 1 additions and 2 deletions
|
|
@ -1065,8 +1065,7 @@ static void build_fog( struct tnl_program *p )
|
|||
fog = load_input(p, VERT_ATTRIB_FOG, glsl_float_type());
|
||||
break;
|
||||
default:
|
||||
assert(!"Bad fog mode in build_fog()");
|
||||
break;
|
||||
unreachable("Bad fog mode in build_fog()");
|
||||
}
|
||||
|
||||
store_output_float(p, VARYING_SLOT_FOGC, fog);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue