mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 13:58:04 +02:00
util/format: Fix bogus assertion.
This commit is contained in:
parent
3af2ddbe94
commit
440fc5bf78
1 changed files with 1 additions and 1 deletions
|
|
@ -225,7 +225,7 @@ util_format_get_component_bits(enum pipe_format format,
|
|||
return 0;
|
||||
}
|
||||
|
||||
assert(component >= 4);
|
||||
assert(component < 4);
|
||||
|
||||
/* Treat RGB and SRGB as equivalent. */
|
||||
if (colorspace == UTIL_FORMAT_COLORSPACE_SRGB) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue