Allow queries of different types to be active at the same time
BUG=605775
Change-Id: I0e23fae25d450c504f174a080279cf51aebcd123
Reviewed-on: https://chromium-review.googlesource.com/340112
Reviewed-by: Jamie Madill <jmadill@chromium.org>
Reviewed-by: Geoff Lang <geofflang@chromium.org>
Commit-Queue: Corentin Wallez <cwallez@chromium.org>
diff --git a/src/libANGLE/validationES.cpp b/src/libANGLE/validationES.cpp
index 6ea31bf..eeafe45 100644
--- a/src/libANGLE/validationES.cpp
+++ b/src/libANGLE/validationES.cpp
@@ -1168,9 +1168,7 @@
// of GL_ANY_SAMPLES_PASSED_EXT and GL_ANY_SAMPLES_PASSED_CONSERVATIVE_EXT,
// no query may be active for either if glBeginQuery targets either.
- // TODO(ewell): I think this needs to be changed for timer and occlusion queries to work at the
- // same time
- if (context->getState().isQueryActive())
+ if (context->getState().isQueryActive(target))
{
context->recordError(Error(GL_INVALID_OPERATION, "Other query is active"));
return false;