From 30f13cafc5fff69c7e31f3ead2df5d6c0282ec07 Mon Sep 17 00:00:00 2001 From: Robert Bragg Date: Tue, 23 Jun 2009 15:24:42 +0100 Subject: [PATCH] [cogl] Give the default (fallback) texture a format of RGBA_8888_PRE Previously this was RGBA_8888. It souldn't really make a difference but for consistency we expect almost all textures in use to have an internaly premultiplied pixel format. --- clutter/cogl/gl/cogl-context.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/clutter/cogl/gl/cogl-context.c b/clutter/cogl/gl/cogl-context.c index 201e05db7..e40ec5774 100644 --- a/clutter/cogl/gl/cogl-context.c +++ b/clutter/cogl/gl/cogl-context.c @@ -149,18 +149,18 @@ cogl_create_context () cogl_texture_new_from_data (1, /* width */ 1, /* height */ COGL_TEXTURE_NO_SLICING, - COGL_PIXEL_FORMAT_RGBA_8888, /* data format */ + COGL_PIXEL_FORMAT_RGBA_8888_PRE, /* data format */ /* internal format */ - COGL_PIXEL_FORMAT_RGBA_8888, + COGL_PIXEL_FORMAT_RGBA_8888_PRE, 0, /* auto calc row stride */ default_texture_data); _context->default_gl_texture_rect_tex = cogl_texture_new_from_data (1, /* width */ 1, /* height */ COGL_TEXTURE_NO_SLICING, - COGL_PIXEL_FORMAT_RGBA_8888, /* data format */ + COGL_PIXEL_FORMAT_RGBA_8888_PRE, /* data format */ /* internal format */ - COGL_PIXEL_FORMAT_RGBA_8888, + COGL_PIXEL_FORMAT_RGBA_8888_PRE, 0, /* auto calc row stride */ default_texture_data);