Index: gpu/command_buffer/service/gl_context_virtual.cc |
diff --git a/gpu/command_buffer/service/gl_context_virtual.cc b/gpu/command_buffer/service/gl_context_virtual.cc |
index 51cc84fb2e969f57c75efa421067e7e032fba221..2582d00a754fc193d6cf1bb48e3c6aaad8217e73 100644 |
--- a/gpu/command_buffer/service/gl_context_virtual.cc |
+++ b/gpu/command_buffer/service/gl_context_virtual.cc |
@@ -51,12 +51,10 @@ |
// If it's a real surface it needs to be current. |
if (surface && |
!surface->IsOffscreen()) |
- return shared_context_->IsCurrent(surface) && |
- shared_context_->current_virtual_context_ == this; |
+ return shared_context_->IsCurrent(surface); |
// Otherwise, only insure the context itself is current. |
- return shared_context_->IsCurrent(NULL) && |
- shared_context_->current_virtual_context_ == this; |
+ return shared_context_->IsCurrent(NULL); |
} |
void* GLContextVirtual::GetHandle() { |