| Index: gpu/command_buffer/service/gles2_cmd_decoder.cc
|
| diff --git a/gpu/command_buffer/service/gles2_cmd_decoder.cc b/gpu/command_buffer/service/gles2_cmd_decoder.cc
|
| index 6d4bacbfa7f941e3cfcf8a1855a3e1b36c2770ab..3d8bcadb0cda8446a3d73a1a02f4369ab7c4bf0e 100644
|
| --- a/gpu/command_buffer/service/gles2_cmd_decoder.cc
|
| +++ b/gpu/command_buffer/service/gles2_cmd_decoder.cc
|
| @@ -193,11 +193,12 @@ GLuint GetServiceId(const OBJECT_TYPE* object) {
|
| return object ? object->service_id() : 0;
|
| }
|
|
|
| -bool CheckUniqueIds(GLsizei n, const GLuint* client_ids) {
|
| +bool CheckUniqueAndNonNullIds(GLsizei n, const GLuint* client_ids) {
|
| if (n <= 0)
|
| return true;
|
| std::unordered_set<uint32_t> unique_ids(client_ids, client_ids + n);
|
| - return unique_ids.size() == static_cast<size_t>(n);
|
| + return (unique_ids.size() == static_cast<size_t>(n)) &&
|
| + (unique_ids.find(0) == unique_ids.end());
|
| }
|
|
|
| struct Vec4f {
|
|
|