mirror of
https://github.com/brl/mutter.git
synced 2024-11-27 02:20:43 -05:00
9d3aa57604
The _cogl_unpremult_alpha_{first,last} functions which _cogl_bitmap_fallback_unpremult depends on were incorrectly casting each of the byte components of a texel to a gulong and performing shifts as if it were dealing with the whole texel. It now just uses array indexing to access the byte components without needing to cast or manually shift any bits around. Even though we used to depend on unpremult whenever we used a ClutterCairoTexture, clutter_cairo_texture_context_destroy had it's own unpremult code which worked which is why this bug wouldn't have been noticed before. |
||
---|---|---|
.. | ||
cogl-bitmap-fallback.c | ||
cogl-bitmap-pixbuf.c | ||
cogl-bitmap-private.h | ||
cogl-bitmap.c | ||
cogl-blend-string.c | ||
cogl-blend-string.h | ||
cogl-clip-stack.c | ||
cogl-clip-stack.h | ||
cogl-color.c | ||
cogl-current-matrix.c | ||
cogl-current-matrix.h | ||
cogl-debug.c | ||
cogl-enum-types.c.in | ||
cogl-enum-types.h.in | ||
cogl-fixed.c | ||
cogl-handle.h | ||
cogl-internal.h | ||
cogl-material-private.h | ||
cogl-material.c | ||
cogl-matrix-stack.c | ||
cogl-matrix-stack.h | ||
cogl-matrix.c | ||
cogl-primitives.c | ||
cogl-primitives.h | ||
cogl-util.c | ||
cogl-util.h | ||
cogl-vertex-buffer-private.h | ||
cogl-vertex-buffer.c | ||
cogl.c | ||
Makefile.am | ||
stb_image.c |