diff mbox

[Bug,1581796] Re: console-gl.c:96:surface_gl_create_texture:code should not be reached

Message ID 20160606063421.19490.51294.malone@wampee.canonical.com
State New
Headers show

Commit Message

T. Huth June 6, 2016, 6:34 a.m. UTC
OK, thanks for checking. Pixel format = 0x20020888 is the
PIXMAN_x8r8g8b8 format, if I've got the pixman.h header right. So could
you please try the following patch to see whether it fixes the issue for
you?
diff mbox

Patch

diff --git a/ui/console-gl.c b/ui/console-gl.c
--- a/ui/console-gl.c
+++ b/ui/console-gl.c
@@ -88,6 +88,10 @@  void surface_gl_create_texture(ConsoleGLState *gls,
         surface->glformat = GL_BGRA_EXT;
         surface->gltype = GL_UNSIGNED_BYTE;
         break;
+    case PIXMAN_BE_x8r8g8b8:
+        surface->glformat = GL_RGBA;
+        surface->gltype = GL_UNSIGNED_BYTE;
+        break;
     case PIXMAN_r5g6b5:
         surface->glformat = GL_RGB;
         surface->gltype = GL_UNSIGNED_SHORT_5_6_5;