Chromium Code Reviews| Index: gpu/command_buffer/service/program_manager.cc |
| diff --git a/gpu/command_buffer/service/program_manager.cc b/gpu/command_buffer/service/program_manager.cc |
| index f0c9141e6d5353a261aacacb2d17bb3878a703ba..7902e259a3ae015aa0faeed3efcd5080fded9112 100644 |
| --- a/gpu/command_buffer/service/program_manager.cc |
| +++ b/gpu/command_buffer/service/program_manager.cc |
| @@ -80,11 +80,7 @@ bool GetUniformNameSansElement( |
| if (digit < 0 || digit > 9) { |
| return false; |
| } |
| - index = index * 10 + digit; |
| - } |
| - |
| - if (index < 0) { |
| - return false; |
| + index = (GLint) digit; |
|
Tyler Breisacher (Chromium)
2012/07/25 17:47:19
Why are you removing the "index * 10 +" part?
|
| } |
| *element_index = index; |