Index: gpu/command_buffer/service/context_state.cc |
diff --git a/gpu/command_buffer/service/context_state.cc b/gpu/command_buffer/service/context_state.cc |
index 565536ed093ed32bf363af05034114f0b162b0d0..893465dc7250970c498fe2db8525e5713f137293 100644 |
--- a/gpu/command_buffer/service/context_state.cc |
+++ b/gpu/command_buffer/service/context_state.cc |
@@ -373,10 +373,10 @@ void ContextState::RestoreVertexAttribArrays( |
glVertexAttribDivisorANGLE(attrib_index, attrib->divisor()); |
// Never touch vertex attribute 0's state (in particular, never |
- // disable it) when running on desktop GL because it will never be |
- // re-enabled. |
+ // disable it) when running on desktop GL with compatibility profile |
+ // because it will never be re-enabled. |
if (attrib_index != 0 || |
- gfx::GetGLImplementation() == gfx::kGLImplementationEGLGLES2) { |
+ feature_info_->gl_version_info().BehavesLikeGLES()) { |
if (attrib->enabled()) { |
glEnableVertexAttribArray(attrib_index); |
} else { |