summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenjamin Otte <otte@redhat.com>2010-03-05 15:08:34 +0100
committerBenjamin Otte <otte@redhat.com>2010-04-15 17:43:32 +0200
commitebc9cc46fe7740c6d97e02edc66bae383413764b (patch)
treeb45189639ab07156b56dadda569c097fbb6227f5
parent4142f0836d6719dd136a5fc6ac1adaddd681a3f2 (diff)
gl: Use right format
The internal format should always be GL_RGBA.
-rw-r--r--src/cairo-gl-surface.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cairo-gl-surface.c b/src/cairo-gl-surface.c
index 96eb1b63..9107d4d8 100644
--- a/src/cairo-gl-surface.c
+++ b/src/cairo-gl-surface.c
@@ -209,7 +209,7 @@ _cairo_gl_get_image_format_and_type (pixman_format_code_t pixman_format,
*has_alpha = FALSE;
return TRUE;
case PIXMAN_b8g8r8a8:
- *internal_format = GL_BGRA;
+ *internal_format = GL_RGBA;
*format = GL_BGRA;
*type = GL_UNSIGNED_INT_8_8_8_8;
return TRUE;