mesa: Require gen'd names in glBeginQuery on ES 3.0.
authorKenneth Graunke <kenneth@whitecape.org>
Sun, 18 Nov 2012 02:45:00 +0000 (18:45 -0800)
committerKenneth Graunke <kenneth@whitecape.org>
Mon, 19 Nov 2012 19:49:00 +0000 (11:49 -0800)
commitbbda7d65a9a71c41eb8dfe7aa3f4fce8c15ebbca
tree873de097bf815a9b9a15e07eba62705fcb6b6729
parentc6ed42a89ede459e72b18cd8890cc3aba39905f5
mesa: Require gen'd names in glBeginQuery on ES 3.0.

Only legacy OpenGL allows the use of non-gen'd names.  Core profiles
and ES 3 both require the use of glGenQueries().

Note that BeginQuery doesn't exist in ES 1 or ES 2.

Fixes es3conform's occlusion_query_invalid_beginquery test.

Reviewed-and-tested-by: Matt Turner <mattst88@gmail.com>
src/mesa/main/queryobj.c