[debug] Adds a COGL_DEBUG=matrices debug option

This adds a COGL_DEBUG=matrices debug option that can be used to trace all
matrix manipulation done using the Cogl API.  This can be handy when you
break something in such a way that a trace is still comparable with a
previous working version since you can simply diff a log of the broken
version vs the working version to home in on the bug.
This commit is contained in:
Robert Bragg
2009-10-26 11:01:33 +00:00
parent 0a1db7c4d8
commit 2126bf60fd
5 changed files with 76 additions and 2 deletions

View File

@ -46,7 +46,8 @@ static const GDebugKey cogl_debug_keys[] = {
{ "disable-vbos", COGL_DEBUG_DISABLE_VBOS },
{ "journal", COGL_DEBUG_JOURNAL },
{ "batching", COGL_DEBUG_BATCHING },
{ "disable-software-transform", COGL_DEBUG_DISABLE_SOFTWARE_TRANSFORM }
{ "disable-software-transform", COGL_DEBUG_DISABLE_SOFTWARE_TRANSFORM },
{ "matrices", COGL_DEBUG_MATRICES }
};
static const gint n_cogl_debug_keys = G_N_ELEMENTS (cogl_debug_keys);