]> git.cworth.org Git - fips/commit
Restore metrics op after temporarily changing for non-shader operation
authorCarl Worth <cworth@cworth.org>
Wed, 16 Oct 2013 20:03:15 +0000 (13:03 -0700)
committerCarl Worth <cworth@cworth.org>
Wed, 16 Oct 2013 20:07:32 +0000 (13:07 -0700)
commit7980e4108be1dff9b074aa91b97c8d787df41d83
tree3dce4774d0a5275efa2ee6e4a74261b5a9833114
parent61b4545d541527ca2bd76811195b964595db7ed1
Restore metrics op after temporarily changing for non-shader operation

This fixes the bug where an operation such as glClear would
incorrectly accrue all subsequent time until the next call to
glUseProgram would change the op away from glClear.

Now, each non-shader operation that changes the metrics operation
restores it to its previous value immediately afterward.
glwrap.c
metrics.c
metrics.h