| Index: gpu/command_buffer/service/context_group.cc
|
| diff --git a/gpu/command_buffer/service/context_group.cc b/gpu/command_buffer/service/context_group.cc
|
| index 539758427695de011d2356b3860b9549633ffc1d..84938acfcbe9feeed43b2e35d9ead16c7894c97f 100644
|
| --- a/gpu/command_buffer/service/context_group.cc
|
| +++ b/gpu/command_buffer/service/context_group.cc
|
| @@ -118,6 +118,13 @@ ContextGroup::ContextGroup(
|
| bool ContextGroup::Initialize(GLES2Decoder* decoder,
|
| ContextType context_type,
|
| const DisallowedFeatures& disallowed_features) {
|
| + if (!gpu_preferences_.enable_unsafe_es3_apis &&
|
| + (context_type == CONTEXT_TYPE_OPENGLES3 ||
|
| + context_type == CONTEXT_TYPE_WEBGL2)) {
|
| + DLOG(ERROR) << "ContextGroup::Initialize failed because ES3 APIs are "
|
| + << "not available.";
|
| + return false;
|
| + }
|
| if (HaveContexts()) {
|
| if (context_type != feature_info_->context_type()) {
|
| DLOG(ERROR) << "ContextGroup::Initialize failed because the type of "
|
|
|