mesa: In conditional rendering fallback, check the query status.
authorEric Anholt <eric@anholt.net>
Mon, 6 Aug 2012 15:26:30 +0000 (08:26 -0700)
committerEric Anholt <eric@anholt.net>
Wed, 8 Aug 2012 23:21:30 +0000 (16:21 -0700)
commit1b148e660e4cefcfbdc65ef8a58a7e52e8820782
tree558a036c47f4a8e3ced55ec198b230f815d58f18
parent4bbd12036819ed6a2d0993c437e0c02bf0c92b0b
mesa: In conditional rendering fallback, check the query status.

Otherwise, conditional rendering always takes the fallthrough "render it
anyway" case unless the application had itself done a check or wait on the
query.

Fixes intel oglconform's conditional_render advanced.nofbo.readpixels.

Reviewed-by: Brian Paul <brianp@vmware.com>
NOTE: This is a candidate for the 8.0 branch.
src/mesa/main/condrender.c