mirror of
https://github.com/brl/mutter.git
synced 2025-01-11 20:22:23 +00:00
eb7ef457cb
This adds COGL_PIXEL_FORMAT_RG_88 and COGL_TEXTURE_COMPONENTS_RG in order to support two-component textures. The RG components for a texture is only supported if COGL_FEATURE_ID_TEXTURE_RG is advertised. This is only available on GL 3, GL 2 with the GL_ARB_texture_rg extension or GLES with the GL_EXT_texture_rg extension. The RG pixel format is always supported for images because Cogl can easily do the conversion if an application uses this format to upload to a texture with a different format. If an application tries to create an RG texture when the feature isn't supported then it will raise an error when the texture is allocated. https://bugzilla.gnome.org/show_bug.cgi?id=712830 Reviewed-by: Robert Bragg <robert@linux.intel.com> (cherry picked from commit 568677ab3bcb62ababad1623be0d6b9b117d0a26) Conflicts: cogl/cogl-bitmap-packing.h cogl/cogl-types.h cogl/driver/gl/gl/cogl-driver-gl.c tests/conform/test-read-texture-formats.c tests/conform/test-write-texture-formats.c |
||
---|---|---|
.. | ||
Makefile.am | ||
test-alpha-test.c | ||
test-alpha-textures.c | ||
test-atlas-migration.c | ||
test-backface-culling.c | ||
test-blend-strings.c | ||
test-blend.c | ||
test-color-hsl.c | ||
test-color-mask.c | ||
test-conform-main.c | ||
test-copy-replace-texture.c | ||
test-custom-attributes.c | ||
test-depth-test.c | ||
test-euler-quaternion.c | ||
test-fence.c | ||
test-fixed.c | ||
test-fixtures.c | ||
test-framebuffer-get-bits.c | ||
test-gles2-context.c | ||
test-just-vertex-shader.c | ||
test-layer-remove.c | ||
test-map-buffer-range.c | ||
test-materials.c | ||
test-multitexture.c | ||
test-no-gl-header.c | ||
test-npot-texture.c | ||
test-object.c | ||
test-offscreen.c | ||
test-path-clip.c | ||
test-path.c | ||
test-pipeline-cache-unrefs-texture.c | ||
test-pipeline-shader-state.c | ||
test-pipeline-uniforms.c | ||
test-pipeline-user-matrix.c | ||
test-pixel-buffer.c | ||
test-point-size-attribute.c | ||
test-point-size.c | ||
test-point-sprite.c | ||
test-premult.c | ||
test-primitive-and-journal.c | ||
test-primitive.c | ||
test-read-texture-formats.c | ||
test-readpixels.c | ||
test-snippets.c | ||
test-sparse-pipeline.c | ||
test-sub-texture.c | ||
test-texture-3d.c | ||
test-texture-get-set-data.c | ||
test-texture-mipmaps.c | ||
test-texture-no-allocate.c | ||
test-texture-pixmap-x11.c | ||
test-texture-rectangle.c | ||
test-texture-rg.c | ||
test-version.c | ||
test-vertex-buffer-contiguous.c | ||
test-vertex-buffer-interleved.c | ||
test-vertex-buffer-mutability.c | ||
test-viewport.c | ||
test-wrap-modes.c | ||
test-wrap-rectangle-textures.c | ||
test-write-texture-formats.c |