[cairo] [PATCH 8/8] gl: Handle PIXMAN_a8r8g8b8_sRGB format in switch

Bryce W. Harrington b.harrington at samsung.com
Fri Feb 21 18:07:07 PST 2014


Fixes the following compiler warning:

  cairo-gl-surface.c:182:5: warning: enumeration value
  ‘PIXMAN_a8r8g8b8_sRGB’ not handled in switch

Same fix as done for image in 1d0055078.

Signed-off-by: Bryce Harrington <b.harrington at samsung.com>
---
 src/cairo-gl-surface.c |    3 +++
 1 file changed, 3 insertions(+)

diff --git a/src/cairo-gl-surface.c b/src/cairo-gl-surface.c
index b58c536..cfccf4d 100644
--- a/src/cairo-gl-surface.c
+++ b/src/cairo-gl-surface.c
@@ -261,6 +261,9 @@ _cairo_gl_get_image_format_and_type_gl (pixman_format_code_t pixman_format,
 	*type = GL_UNSIGNED_BYTE;
 	return TRUE;
 
+#if PIXMAN_VERSION >= PIXMAN_VERSION_ENCODE(0,27,2)
+    case PIXMAN_a8r8g8b8_sRGB:
+#endif
     case PIXMAN_a2b10g10r10:
     case PIXMAN_x2b10g10r10:
     case PIXMAN_a4r4g4b4:
-- 
1.7.9.5


More information about the cairo mailing list