mirror of
https://github.com/brl/mutter.git
synced 2024-12-24 12:02:04 +00:00
c0a553163b
cogl_read_pixels() no longer asserts that the format passed in is RGBA_8888 but instead accepts any format. The appropriate GL enums for the format are passed to glReadPixels so OpenGL should be perform a conversion if neccessary. It currently assumes glReadPixels will always give us premultiplied data. This will usually be correct because the result of the default blending operations for Cogl ends up with premultiplied data in the framebuffer. However it is possible for the framebuffer to be in whatever format depending on what CoglMaterial is used to render to it. Eventually we may want to add a way for an application to inform Cogl that the framebuffer is not premultiplied in case it is being used for some special purpose. If the requested format is not premultiplied then Cogl will convert it. The tests have been changed to read the data as premultiplied so that they won't be affected by the conversion. Picking in Clutter has been changed to use COGL_PIXEL_FORMAT_RGB_888 because it doesn't need the alpha component. clutter_stage_read_pixels is left unchanged because the application can't specify a format for that so it seems to make most sense to store unpremultiplied values. http://bugzilla.openedhand.com/show_bug.cgi?id=1959 |
||
---|---|---|
.. | ||
ADDING_NEW_TESTS | ||
Makefile.am | ||
test-actor-destroy.c | ||
test-actor-invariants.c | ||
test-actor-size.c | ||
test-anchors.c | ||
test-animator.c | ||
test-behaviours.c | ||
test-binding-pool.c | ||
test-clutter-rectangle.c | ||
test-clutter-text.c | ||
test-clutter-units.c | ||
test-cogl-backface-culling.c | ||
test-cogl-blend-strings.c | ||
test-cogl-fixed.c | ||
test-cogl-materials.c | ||
test-cogl-multitexture.c | ||
test-cogl-npot-texture.c | ||
test-cogl-offscreen.c | ||
test-cogl-pixel-buffer.c | ||
test-cogl-premult.c | ||
test-cogl-readpixels.c | ||
test-cogl-sub-texture.c | ||
test-cogl-texture-mipmaps.c | ||
test-cogl-vertex-buffer-contiguous.c | ||
test-cogl-vertex-buffer-interleved.c | ||
test-cogl-vertex-buffer-mutability.c | ||
test-cogl-viewport.c | ||
test-color.c | ||
test-conform-common.c | ||
test-conform-common.h | ||
test-conform-main.c | ||
test-group.c | ||
test-launcher.sh | ||
test-model.c | ||
test-paint-opacity.c | ||
test-path.c | ||
test-pick.c | ||
test-script-parser.c | ||
test-text-cache.c | ||
test-texture-fbo.c | ||
test-timeline-interpolate.c | ||
test-timeline-rewind.c | ||
test-timeline.c |