summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorIlia Mirkin <[email protected]>2016-02-04 21:55:13 -0500
committerIlia Mirkin <[email protected]>2016-02-09 11:59:35 -0500
commit922be4eab9d2a5d169dc84b3f2d99f08f3d16e5c (patch)
treed8d90961deb9aff8f4ecfa7e04aec3e1ae249f3d /src
parent7aca4bb9b130450574b42fd84667f645a0749226 (diff)
mesa: remove hack to fix up GL_ANY_SAMPLES_PASSED results
Both st/mesa and i965 should return a true/false result now, and the only other driver implementing queries (radeon) doesn't support ARB_occlusion_query2 which added that pname. Signed-off-by: Ilia Mirkin <[email protected]> Reviewed-by: Marek Olšák <[email protected]> Reviewed-by: Nicolai Hähnle <[email protected]>
Diffstat (limited to 'src')
-rw-r--r--src/mesa/main/queryobj.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/src/mesa/main/queryobj.c b/src/mesa/main/queryobj.c
index b86692a5f7e..7a70b592c47 100644
--- a/src/mesa/main/queryobj.c
+++ b/src/mesa/main/queryobj.c
@@ -807,11 +807,6 @@ invalid_enum:
return;
}
- /* TODO: Have the driver be required to handle this fixup. */
- if (q->Target == GL_ANY_SAMPLES_PASSED ||
- q->Target == GL_ANY_SAMPLES_PASSED_CONSERVATIVE)
- value = !!value;
-
switch (ptype) {
case GL_INT: {
GLint *param = (GLint *)offset;