]> git.cworth.org Git - fips/commit
Avoid inserting timer queries while constructing a display list
authorCarl Worth <cworth@cworth.org>
Fri, 24 May 2013 18:11:15 +0000 (11:11 -0700)
committerCarl Worth <cworth@cworth.org>
Thu, 30 May 2013 20:09:57 +0000 (13:09 -0700)
commit499af6e2043af80750f5b2a2866ebb430e085851
tree35cca4ca8a24ad31e1d47c84ddf446fbbe5915c4
parente7e5c4643bbf59b0df88356ef5c511ebe764ff58
Avoid inserting timer queries while constructing a display list

We only want to time actual drawing operations. When between glNewList
and glEndList, calls that look like drawing operations are not really,
instead these are just calls that are being recorded to be later
executed with glCallList. (And it won't work to put our timer queries
inside the display list.)

So, track when we are within glNewList/glEndList and don't add timer
queries.  Instead, we will time these operations as a whole with a
timer query around the glCallList call itself.
glwrap.c
libfips.sym