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 d142e01fb13a567d945674d6a5980d97636d8c54..cdbbf68b2d5931b34e58d00e72e798704ee96632 100644 |
--- a/gpu/command_buffer/service/gl_context_virtual.cc |
+++ b/gpu/command_buffer/service/gl_context_virtual.cc |
@@ -68,8 +68,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. |