| Index: gpu/command_buffer/service/gles2_cmd_decoder.cc
|
| ===================================================================
|
| --- gpu/command_buffer/service/gles2_cmd_decoder.cc (revision 35801)
|
| +++ gpu/command_buffer/service/gles2_cmd_decoder.cc (working copy)
|
| @@ -1148,8 +1148,7 @@
|
| // Check the GL error first, then our wrapped error.
|
| GLenum error = glGetError();
|
| if (error == GL_NO_ERROR && error_bits_ != 0) {
|
| - uint32 mask = 1;
|
| - while (mask) {
|
| + for (uint32 mask = 1; mask != 0; mask = mask << 1) {
|
| if ((error_bits_ & mask) != 0) {
|
| error = GLErrorBitToGLError(mask);
|
| break;
|
|
|