mesa: Fix error code generation in glBeginConditionalRender()
authorAnuj Phogat <anuj.phogat@gmail.com>
Thu, 12 Dec 2013 22:34:27 +0000 (14:34 -0800)
committerAnuj Phogat <anuj.phogat@gmail.com>
Fri, 13 Dec 2013 19:13:25 +0000 (11:13 -0800)
commit7a73c6acb0a4f5f049795f73a54a08a6dbe166ed
treeabc31f6d5746a112d092ef4f3540704be7db60cc
parent93e399f64112cad2816780c2fbedccccd175b965
mesa: Fix error code generation in glBeginConditionalRender()

This patch changes the error condition to satisfy below statement
from OpenGL 4.3 core specification:
"An INVALID_OPERATION error is generated if id is the name of a query
object with a target other SAMPLES_PASSED, ANY_SAMPLES_PASSED, or
ANY_SAMPLES_PASSED_CONSERVATIVE, or if id is the name of a query
currently in progress."

Cc: mesa-stable@lists.freedesktop.org
Signed-off-by: Anuj Phogat <anuj.phogat@gmail.com>
Reviewed-by: Brian Paul <brianp@vmware.com>
src/mesa/main/condrender.c