Index: ui/gl/init/gl_factory_ozone.cc |
diff --git a/ui/gl/init/gl_factory_ozone.cc b/ui/gl/init/gl_factory_ozone.cc |
index 9bd31ebc725621b53df42ebeed4bf6a9af75f62f..a4e0097cb20da525576627ce68b910537deb8f94 100644 |
--- a/ui/gl/init/gl_factory_ozone.cc |
+++ b/ui/gl/init/gl_factory_ozone.cc |
@@ -85,7 +85,7 @@ scoped_refptr<GLSurface> CreateOffscreenGLSurfaceWithFormat( |
const gfx::Size& size, GLSurfaceFormat format) { |
TRACE_EVENT0("gpu", "gl::init::CreateOffscreenGLSurface"); |
- if (!format.IsDefault()) { |
+ if (!format.IsCompatible(GLSurfaceFormat())) { |
NOTREACHED() << "FATAL: Ozone only supports default-format surfaces."; |
return nullptr; |
} |