Index: ui/ozone/demo/ozone_demo.cc |
diff --git a/ui/ozone/demo/ozone_demo.cc b/ui/ozone/demo/ozone_demo.cc |
index 309b138edaec12cea764834574069cb35f80b6a5..42a626757b535f67cda1d22ea1b12e062c610396 100644 |
--- a/ui/ozone/demo/ozone_demo.cc |
+++ b/ui/ozone/demo/ozone_demo.cc |
@@ -86,14 +86,14 @@ class DemoWindow : public ui::PlatformWindowDelegate { |
private: |
bool InitializeGLSurface() { |
surface_ = gfx::GLSurface::CreateViewGLSurface(GetAcceleratedWidget()); |
- if (!surface_) { |
+ if (!surface_.get()) { |
LOG(ERROR) << "Failed to create GL surface"; |
return false; |
} |
context_ = gfx::GLContext::CreateGLContext( |
NULL, surface_.get(), gfx::PreferIntegratedGpu); |
- if (!context_) { |
+ if (!context_.get()) { |
LOG(ERROR) << "Failed to create GL context"; |
surface_ = NULL; |
return false; |