Index: gpu/command_buffer/client/gles2_implementation_impl_autogen.h |
diff --git a/gpu/command_buffer/client/gles2_implementation_impl_autogen.h b/gpu/command_buffer/client/gles2_implementation_impl_autogen.h |
index 4f721a8d1cd1ff889b9213511f895bd2f955cf3e..9d9a020fe622cbb4a9926cb94c28a594ef281df0 100644 |
--- a/gpu/command_buffer/client/gles2_implementation_impl_autogen.h |
+++ b/gpu/command_buffer/client/gles2_implementation_impl_autogen.h |
@@ -1842,7 +1842,9 @@ void GLES2Implementation::GenQueriesEXT(GLsizei n, GLuint* queries) { |
return; |
} |
GPU_CLIENT_SINGLE_THREAD_CHECK(); |
- GetIdHandler(id_namespaces::kQueries)->MakeIds(this, 0, n, queries); |
+ IdAllocatorInterface* id_allocator = GetIdAllocator(id_namespaces::kQueries); |
+ for (GLsizei ii = 0; ii < n; ++ii) |
+ queries[ii] = id_allocator->AllocateID(); |
GenQueriesEXTHelper(n, queries); |
helper_->GenQueriesEXTImmediate(n, queries); |
if (share_group_->bind_generates_resource()) |