]> git.cworth.org Git - fips/commit
Push glBeginQuery/glEndQuery down into metrics.c
authorCarl Worth <cworth@yoom.(none)>
Mon, 24 Jun 2013 22:24:20 +0000 (22:24 +0000)
committerCarl Worth <cworth@cworth.org>
Mon, 24 Jun 2013 22:27:06 +0000 (15:27 -0700)
commitfac9c8c2d3bfc5e97f2fdcf90f8cbe3ac9b2c49e
tree46702fb90135fb003c5c93423293048066c0fedb
parent6475596e655063624dbf54359bd2a45de6a17dd1
Push glBeginQuery/glEndQuery down into metrics.c

The code in metrics.c was already using dynamic dispatch for OpenGL functions.

But the code in glwrap is now, (and cannot since it relies on "real" OpenGL
header files to ensure the wrapped functions have the correct prototypes).

This resulted in link failures since these functions were not called via
dynamic dispatch.

Gix by adding new metrics_counter_start and metrics_counter_stop functions which
call the glBeginQuery/glEndQuery functions via dynamic dispatch.
fips-dispatch-gl.h
glwrap.c
metrics.c
metrics.h