diff options
Diffstat (limited to 'content/common/gpu/image_transport_surface_mac.cc')
-rw-r--r-- | content/common/gpu/image_transport_surface_mac.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/content/common/gpu/image_transport_surface_mac.cc b/content/common/gpu/image_transport_surface_mac.cc index 00bc86c..ceb6964 100644 --- a/content/common/gpu/image_transport_surface_mac.cc +++ b/content/common/gpu/image_transport_surface_mac.cc @@ -495,7 +495,7 @@ scoped_refptr<gfx::GLSurface> ImageTransportSurface::CreateNativeSurface( return scoped_refptr<gfx::GLSurface>(); } scoped_refptr<gfx::GLSurface> surface(new DRTSurfaceOSMesa()); - if (!surface || !surface->Initialize()) + if (!surface.get() || !surface->Initialize()) return surface; return scoped_refptr<gfx::GLSurface>(new PassThroughImageTransportSurface( manager, stub, surface.get(), false)); |