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
This commit is contained in:

committed by
Robert Bragg

parent
3c4451cd84
commit
7a7dedebd5
@ -50,7 +50,8 @@ static const GDebugKey cogl_log_debug_keys[] = {
|
||||
{ "draw", COGL_DEBUG_DRAW },
|
||||
{ "opengl", COGL_DEBUG_OPENGL },
|
||||
{ "pango", COGL_DEBUG_PANGO },
|
||||
{ "show-source", COGL_DEBUG_SHOW_SOURCE}
|
||||
{ "show-source", COGL_DEBUG_SHOW_SOURCE},
|
||||
{ "offscreen", COGL_DEBUG_OFFSCREEN }
|
||||
};
|
||||
static const int n_cogl_log_debug_keys =
|
||||
G_N_ELEMENTS (cogl_log_debug_keys);
|
||||
@ -124,6 +125,7 @@ _cogl_parse_debug_string (const char *value,
|
||||
OPT ("disable-glsl:", "disable use of GLSL");
|
||||
OPT ("show-source:", "show generated ARBfp/GLSL");
|
||||
OPT ("opengl:", "traces some select OpenGL calls");
|
||||
OPT ("offscreen:", "debug offscreen support");
|
||||
g_printerr ("\n%28s\n", "Special debug values:");
|
||||
OPT ("all:", "Enables all non-behavioural debug options");
|
||||
OPT ("verbose:", "Enables all non-behavioural debug options");
|
||||
|
Reference in New Issue
Block a user