Chromium Code Reviews| Index: gpu/command_buffer/service/gles2_cmd_decoder_passthrough.cc |
| diff --git a/gpu/command_buffer/service/gles2_cmd_decoder_passthrough.cc b/gpu/command_buffer/service/gles2_cmd_decoder_passthrough.cc |
| index 35a84dc733f3a6be544fe31c5cbc00e89ce41f5f..7a1985b4dd73e6df03ca0bacabc41a253194e944 100644 |
| --- a/gpu/command_buffer/service/gles2_cmd_decoder_passthrough.cc |
| +++ b/gpu/command_buffer/service/gles2_cmd_decoder_passthrough.cc |
| @@ -210,10 +210,17 @@ bool GLES2DecoderPassthroughImpl::Initialize( |
| active_texture_unit_ = 0; |
| bound_textures_[GL_TEXTURE_2D].resize(num_texture_units, 0); |
| bound_textures_[GL_TEXTURE_CUBE_MAP].resize(num_texture_units, 0); |
| - if (feature_info_->IsWebGL2OrES3Context()) { |
| + if (feature_info_->gl_version_info().IsAtLeastGLES(3, 0)) { |
|
Zhenyao Mo
2017/05/26 22:48:10
Are you saying we will only create ES3 ANGLE conte
Geoff Lang
2017/05/29 13:47:43
Correct, this is how ANGLE determines if it should
|
| bound_textures_[GL_TEXTURE_2D_ARRAY].resize(num_texture_units, 0); |
| bound_textures_[GL_TEXTURE_3D].resize(num_texture_units, 0); |
| } |
| + if (feature_info_->gl_version_info().IsAtLeastGLES(3, 1)) { |
| + bound_textures_[GL_TEXTURE_2D_MULTISAMPLE].resize(num_texture_units, 0); |
| + } |
| + if (feature_info_->feature_flags().oes_egl_image_external || |
| + feature_info_->feature_flags().nv_egl_stream_consumer_external) { |
| + bound_textures_[GL_TEXTURE_EXTERNAL_OES].resize(num_texture_units, 0); |
| + } |
| if (group_->gpu_preferences().enable_gpu_driver_debug_logging && |
| feature_info_->feature_flags().khr_debug) { |