mirror of
https://gitlab.freedesktop.org/cairo/cairo.git
synced 2026-04-01 09:20:39 +02:00
gl: Handle PIXMAN_a8r8g8b8_sRGB format in switch
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.
Chris Wilson <chris@chris-wilson.co.uk>
This commit is contained in:
parent
7d57e76c9f
commit
4fb5205d2e
1 changed files with 3 additions and 0 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue