mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-06 07:18:17 +02:00
util: fail assertion in util_format_linear if it can't translate SRGB format
Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/9615>
This commit is contained in:
parent
aff4c790ea
commit
5a29a55aa3
1 changed files with 1 additions and 0 deletions
|
|
@ -1153,6 +1153,7 @@ util_format_linear(enum pipe_format format)
|
|||
case PIPE_FORMAT_ASTC_6x6x6_SRGB:
|
||||
return PIPE_FORMAT_ASTC_6x6x6;
|
||||
default:
|
||||
assert(!util_format_is_srgb(format));
|
||||
return format;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue