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 8051e06c3b935105f84f1863a7c524fb04783183..e03c0413e7bbe859c8c83ad9b92b8707207ce2bc 100644 |
--- a/gpu/command_buffer/service/gl_context_virtual.cc |
+++ b/gpu/command_buffer/service/gl_context_virtual.cc |
@@ -72,8 +72,8 @@ void GLContextVirtual::ReleaseCurrent(gfx::GLSurface* surface) { |
bool GLContextVirtual::IsCurrent(gfx::GLSurface* surface) { |
// If it's a real surface it needs to be current. |
if (surface && |
- !surface->GetBackingFrameBufferObject() && |
- !surface->IsOffscreen()) |
+ !surface->IsOffscreen() && |
+ !surface->GetBackingFrameBufferObject()) |
return shared_context_->IsCurrent(surface); |
// Otherwise, only insure the context itself is current. |