summaryrefslogtreecommitdiffstats
path: root/content/common/gpu/gpu_command_buffer_stub.cc
diff options
context:
space:
mode:
Diffstat (limited to 'content/common/gpu/gpu_command_buffer_stub.cc')
-rw-r--r--content/common/gpu/gpu_command_buffer_stub.cc6
1 files changed, 2 insertions, 4 deletions
diff --git a/content/common/gpu/gpu_command_buffer_stub.cc b/content/common/gpu/gpu_command_buffer_stub.cc
index 2612db2..e6e1e78 100644
--- a/content/common/gpu/gpu_command_buffer_stub.cc
+++ b/content/common/gpu/gpu_command_buffer_stub.cc
@@ -405,10 +405,8 @@ void GpuCommandBufferStub::OnInitialize(
}
scoped_refptr<gfx::GLContext> context;
- if ((context_group_->feature_info()->feature_flags().enable_virtual_context ||
- CommandLine::ForCurrentProcess()->HasSwitch(
- switches::kEnableVirtualGLContexts)) &&
- channel_->share_group()) {
+ if (CommandLine::ForCurrentProcess()->HasSwitch(
+ switches::kEnableVirtualGLContexts) && channel_->share_group()) {
context = channel_->share_group()->GetSharedContext();
if (!context) {
context = gfx::GLContext::CreateGLContext(