Index: content/common/gpu/client/webgraphicscontext3d_command_buffer_impl.cc |
diff --git a/content/common/gpu/client/webgraphicscontext3d_command_buffer_impl.cc b/content/common/gpu/client/webgraphicscontext3d_command_buffer_impl.cc |
index e7c945f3ceafbf059efc90d19cc6576516979369..3bf0eebd8cb67bc4d34107d85d7155548a7b9dac 100644 |
--- a/content/common/gpu/client/webgraphicscontext3d_command_buffer_impl.cc |
+++ b/content/common/gpu/client/webgraphicscontext3d_command_buffer_impl.cc |
@@ -156,9 +156,7 @@ bool WebGraphicsContext3DCommandBufferImpl::MaybeInitializeGL() { |
return false; |
} |
- // TODO(twiz): This code is too fragile in that it assumes that only WebGL |
- // contexts will request noExtensions. |
- if (gl_ && attributes_.noExtensions) |
+ if (gl_ && attributes_.webGL) |
gl_->EnableFeatureCHROMIUM("webgl_enable_glsl_webgl_validation"); |
command_buffer_->SetChannelErrorCallback( |