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 645522a775343ebe1a8cf4a661c46a12dff51748..2651741c06e39b29250b316a03222f18afb5be1e 100644 |
--- a/gpu/command_buffer/service/gles2_cmd_decoder.cc |
+++ b/gpu/command_buffer/service/gles2_cmd_decoder.cc |
@@ -2837,6 +2837,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; |