Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(485)

Unified Diff: gpu/command_buffer/client/gles2_implementation.cc

Issue 1199313008: Allowed GLES query target migration between binary occlusion types (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | gpu/command_buffer/client/query_tracker.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gpu/command_buffer/client/gles2_implementation.cc
diff --git a/gpu/command_buffer/client/gles2_implementation.cc b/gpu/command_buffer/client/gles2_implementation.cc
index 8d408fad39120e7cc14a58a683fa176463e6b195..b18ece20fe823a07e42e7d376b89d35cdfcb9b24 100644
--- a/gpu/command_buffer/client/gles2_implementation.cc
+++ b/gpu/command_buffer/client/gles2_implementation.cc
@@ -4831,7 +4831,7 @@ void GLES2Implementation::BeginQueryEXT(GLenum target, GLuint id) {
"transfer buffer allocation failed");
return;
}
- } else if (query->target() != target) {
+ } else if (!query->UpdateTarget(target)) {
SetGLError(
GL_INVALID_OPERATION, "glBeginQueryEXT", "target does not match");
return;
« no previous file with comments | « no previous file | gpu/command_buffer/client/query_tracker.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698