]> git.cworth.org Git - fips/commit
context: Avoid doing excessive work if application re-sets the same context
authorCarl Worth <cworth@cworth.org>
Mon, 4 Nov 2013 21:40:32 +0000 (13:40 -0800)
committerCarl Worth <cworth@cworth.org>
Mon, 4 Nov 2013 21:40:32 +0000 (13:40 -0800)
commit316481c29241d6ba004f644d4b0d3198b2a2ec3f
tree28a71bd2dc4d2879b58c1a4fada45a8ecd4686eb
parent01b9630089d68e7e0e570cf9793c00a8519df973
context: Avoid doing excessive work if application re-sets the same context

I've heard rumors that firefox (at least as of some version) had a
tendency to call glXMakeCurrent with the current context on every frame.

As of this commit, fips will notice the current context being set with
MakeCurrent and will do not tear things down and re-create them in
this case.
context.c
context.h