]> git.cworth.org Git - fips/commit
Fix fips to work even without the GL_AMD_performance_monitor extension.
authorCarl Worth <cworth@cworth.org>
Mon, 4 Nov 2013 23:44:23 +0000 (15:44 -0800)
committerCarl Worth <cworth@cworth.org>
Mon, 11 Nov 2013 17:43:38 +0000 (09:43 -0800)
commit824789d9fbe591782b55a8d347e588735bab0040
tree06441678cfe84aa703dbf0edbced7426200cfb6a
parentc27d7ce0b3ce5a2b9b753a654fdebcc1627aae52
Fix fips to work even without the GL_AMD_performance_monitor extension.

Even without the extension, we can still do timer queries and print
the time spent in each operation. So detect that the extension is
available, and then use that information to avoid calling into any
functions that are only made available with that extension.

The first report generated with a context that does not have the
extension will include a warning that the extension was not available.
context.c
metrics-info.c
metrics-info.h
metrics.c