summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/mesa/main/format_utils.c2
-rw-r--r--src/mesa/main/glformats.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/mesa/main/format_utils.c b/src/mesa/main/format_utils.c
index eb650a2d4ce..4b44befaf4b 100644
--- a/src/mesa/main/format_utils.c
+++ b/src/mesa/main/format_utils.c
@@ -175,7 +175,7 @@ _mesa_compute_rgba2base2rgba_component_mapping(GLenum baseFormat, uint8_t *map)
return needRebase;
}
default:
- assert(!"Unexpected base format");
+ unreachable("Unexpected base format");
}
}
diff --git a/src/mesa/main/glformats.c b/src/mesa/main/glformats.c
index 06f9aaf0db3..ff153837cdf 100644
--- a/src/mesa/main/glformats.c
+++ b/src/mesa/main/glformats.c
@@ -2712,5 +2712,5 @@ _mesa_format_from_format_and_type(GLenum format, GLenum type)
* matches the GL format/type provided. We may need to add a new Mesa
* format in that case.
*/
- assert(!"Unsupported format");
+ unreachable("Unsupported format");
}