Commit graph

3 commits

Author SHA1 Message Date
Ricardo Garcia
afc1663f85 Fix occlusion query example visual glitch
In the occlusion query example, uniform buffers containing visibility
flags are only updated when the view changes, and visibility information
is calculated from occlusion queries coming from the previous frame.

This means a quick mouse movement can produce a visual glitch by which
the number of visible fragments becomes zero (and this is correctly
reflected in the UI overlay) but the color of the model remains
unchanged, or vice versa, until the view is changed again with the
mouse.

To fix this, update uniform buffers before preparing every frame as part
of the draw() method.
2019-03-20 14:15:44 +01:00
saschawillems
c1c4f06a23 Updated samples to explicitly call drawUI (updated ImGUI version), some code cleanup, removed no-longer necessary UI setup
Refs #496
2018-08-30 21:08:02 +02:00
saschawillems
94a076e1ae Moved example source files into sub folder 2017-11-12 19:32:09 +01:00