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 f37c61a4808d9832879583c2321d05c2fdac9602..bc193f29c263212fce39db544dff8a3016ffaf96 100644 |
--- a/gpu/command_buffer/service/gles2_cmd_decoder.cc |
+++ b/gpu/command_buffer/service/gles2_cmd_decoder.cc |
@@ -2842,6 +2842,14 @@ Capabilities GLES2DecoderImpl::GetCapabilities() { |
DoGetIntegerv(GL_NUM_SHADER_BINARY_FORMATS, &caps.num_shader_binary_formats); |
DoGetIntegerv(GL_BIND_GENERATES_RESOURCE_CHROMIUM, |
&caps.bind_generates_resource_chromium); |
+ if (unsafe_es3_apis_enabled()) { |
+ DoGetIntegerv(GL_MAX_TRANSFORM_FEEDBACK_SEPARATE_ATTRIBS, |
+ &caps.max_transform_feedback_separate_attribs); |
+ DoGetIntegerv(GL_MAX_UNIFORM_BUFFER_BINDINGS, |
+ &caps.max_uniform_buffer_bindings); |
+ DoGetIntegerv(GL_UNIFORM_BUFFER_OFFSET_ALIGNMENT, |
+ &caps.uniform_buffer_offset_alignment); |
+ } |
caps.egl_image_external = |
feature_info_->feature_flags().oes_egl_image_external; |