[Mesa-dev] [PATCH 05/22] glformats: Handle mapping of user format GL_BITMAP to internal formats
Chris Wilson
chris at chris-wilson.co.uk
Sat Aug 5 09:39:57 UTC 2017
Return MESA_FORMAT_NONE for GL_BITMAPs rather than hit the unreachable
assertion.
---
src/mesa/main/glformats.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/src/mesa/main/glformats.c b/src/mesa/main/glformats.c
index 731934df6d..99b251a13d 100644
--- a/src/mesa/main/glformats.c
+++ b/src/mesa/main/glformats.c
@@ -3419,6 +3419,9 @@ _mesa_format_from_format_and_type(GLenum format, GLenum type)
/* Extract array format type information from the OpenGL data type */
switch (type) {
+ case GL_BITMAP:
+ return MESA_FORMAT_NONE;
+
case GL_UNSIGNED_BYTE:
type_size = 1;
break;
--
2.13.3
More information about the mesa-dev
mailing list