| 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 c032dff22ae14ad9a95fdad3815abc464779af5b..c480b71567dca3814c19aeca0b4f7185bc338e42 100644
|
| --- a/gpu/command_buffer/service/gles2_cmd_decoder.cc
|
| +++ b/gpu/command_buffer/service/gles2_cmd_decoder.cc
|
| @@ -8703,7 +8703,8 @@ bool GLES2DecoderImpl::ValidateAndAdjustDrawBuffers(const char* func_name) {
|
|
|
| bool GLES2DecoderImpl::ValidateUniformBlockBackings(const char* func_name) {
|
| DCHECK(feature_info_->IsWebGL2OrES3Context());
|
| - DCHECK(state_.current_program.get());
|
| + if (!state_.current_program.get())
|
| + return true;
|
| int32_t max_index = -1;
|
| for (auto info : state_.current_program->uniform_block_size_info()) {
|
| int32_t index = static_cast<int32_t>(info.binding);
|
|
|