Chromium Code Reviews| Index: gpu/command_buffer/service/context_state.cc |
| diff --git a/gpu/command_buffer/service/context_state.cc b/gpu/command_buffer/service/context_state.cc |
| index 85cde3bfab3297f1782f67c74860de1c61d7c6cf..4a2a3ee505183aefdaad2669ad4af7b7bbc03580 100644 |
| --- a/gpu/command_buffer/service/context_state.cc |
| +++ b/gpu/command_buffer/service/context_state.cc |
| @@ -436,7 +436,8 @@ ErrorState* ContextState::GetErrorState() { |
| void ContextState::EnableDisable(GLenum pname, bool enable) const { |
| if (pname == GL_PRIMITIVE_RESTART_FIXED_INDEX) { |
| if (feature_info_->feature_flags().emulate_primitive_restart_fixed_index) |
|
Zhenyao Mo
2016/03/29 16:30:15
nit: {} for the body when there are multiple lines
Ken Russell (switch to Gerrit)
2016/03/30 01:04:59
Agree.
yunchao
2016/03/30 08:25:22
Done.
|
| - pname = GL_PRIMITIVE_RESTART; |
| + // GLES2DecoderImpl::DoDrawElements can handle this situation |
| + return; |
| } |
| if (enable) { |
| glEnable(pname); |