| Index: gpu/command_buffer/service/cmd_parser.h
|
| ===================================================================
|
| --- gpu/command_buffer/service/cmd_parser.h (revision 39125)
|
| +++ gpu/command_buffer/service/cmd_parser.h (working copy)
|
| @@ -32,7 +32,7 @@
|
| // Sets the "get" pointer. The get pointer is an index into the command buffer
|
| // considered as an array of CommandBufferEntry.
|
| bool set_get(CommandBufferOffset get) {
|
| - if (get < entry_count_) {
|
| + if (get >= 0 && get < entry_count_) {
|
| get_ = get;
|
| return true;
|
| }
|
|
|