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

_______________________________________________
mesa-dev mailing list
mesa-dev@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/mesa-dev

Reply via email to