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 cc1471b221e94778e1e0e1caf79c498605795a70..fb86506049f478059eb8543db9c63eee0dc655e5 100644 |
--- a/gpu/command_buffer/service/gles2_cmd_decoder.cc |
+++ b/gpu/command_buffer/service/gles2_cmd_decoder.cc |
@@ -15535,9 +15535,8 @@ error::Error GLES2DecoderImpl::HandleProgramPathFragmentInputGenCHROMIUM( |
} |
GLint location = static_cast<GLint>(c.location); |
- if (location == -1) { |
+ if (program->IsInactiveFragmentInputLocationByFakeLocation(location)) |
return error::kNoError; |
- } |
const Program::FragmentInputInfo* fragment_input_info = |
program->GetFragmentInputInfoByFakeLocation(location); |