cogl-bitmap: Remove const from premult_alpha_last_four_pixels_sse2

The function modifies the pixels pointed by p in-place so the pointer
can not be constant. The compiler was accepting this because the
modification is done from inline assembler.
This commit is contained in:
Neil Roberts 2010-02-09 16:30:28 +00:00
parent 62fa1f9c28
commit d3948fab8c

View File

@ -226,7 +226,7 @@ _cogl_premult_alpha_first (guchar *dst)
#ifdef COGL_USE_PREMULT_SSE2 #ifdef COGL_USE_PREMULT_SSE2
inline static void inline static void
_cogl_premult_alpha_last_four_pixels_sse2 (const guint8 *p) _cogl_premult_alpha_last_four_pixels_sse2 (guint8 *p)
{ {
/* 8 copies of 128 used below */ /* 8 copies of 128 used below */
static const gint16 eight_halves[8] __attribute__ ((aligned (16))) = static const gint16 eight_halves[8] __attribute__ ((aligned (16))) =