cogl-framebuffer: Use the FBO extension for color sizes
authorEmmanuele Bassi <ebassi@linux.intel.com>
Wed, 26 May 2010 16:14:53 +0000 (17:14 +0100)
committerRobert Bragg <robert@linux.intel.com>
Thu, 10 Jun 2010 18:53:39 +0000 (19:53 +0100)
commit15881e0f24294db68ba1c3ead63246fc46c1c418
treea846dc586b38ed565573b2a23e73fab9bf79f243
parent3daafd4711416cf6f15376fcc97834b1e97fedc8
cogl-framebuffer: Use the FBO extension for color sizes

OpenGL 3.0 deprecated querying of the GL_{RED,GREEN,BLUE}_BITS
constants, and the FBO extension provides a mechanism to query for the
color buffer sizes which *should* work even with the default
framebuffer. Unfortunately, this doesn't seem to hold for Mesa - so we
just use this for the offscreen CoglFramebuffer type, and we fall back
to glGetIntegerv() for the onscreen one.

http://bugzilla.openedhand.com/show_bug.cgi?id=2094
clutter/cogl/cogl/cogl-debug.c
clutter/cogl/cogl/cogl-framebuffer.c
clutter/cogl/cogl/driver/gl/cogl-feature-functions.h
clutter/cogl/cogl/driver/gles/cogl-feature-functions.h