If any meta operations are used while an occlusion query is in progress (such as by calling glClear) then the results aren't saved and restored correctly so the final value is wrong. I posted a patch for this a while ago and I'm opening a bug so we don't forget about it. http://patchwork.freedesktop.org/patch/37605/ There is also a piglit test for it which I pushed to master http://cgit.freedesktop.org/piglit/commit/?id=3f6ee9d53c89c305d4b41f30c7c0dc
I've pushed the patch. http://cgit.freedesktop.org/mesa/mesa/commit/?id=bb77745681e179b53ea64da7bc
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.