Index: ui/gfx/gl/gl_context_linux.cc |
diff --git a/ui/gfx/gl/gl_context_linux.cc b/ui/gfx/gl/gl_context_linux.cc |
index 238bd5f867e6f46caff1e0aa7a05398e6fa8e1ec..083b1ff08f7f2e6a2fe1977858cfb27cf4aaf684 100644 |
--- a/ui/gfx/gl/gl_context_linux.cc |
+++ b/ui/gfx/gl/gl_context_linux.cc |
@@ -26,6 +26,7 @@ scoped_refptr<GLContext> GLContext::CreateGLContext( |
GLShareGroup* share_group, |
GLSurface* compatible_surface) { |
switch (GetGLImplementation()) { |
+#if !defined(USE_WAYLAND) |
case kGLImplementationOSMesaGL: { |
scoped_refptr<GLContext> context(new GLContextOSMesa(share_group)); |
if (!context->Initialize(compatible_surface)) |
@@ -33,15 +34,16 @@ scoped_refptr<GLContext> GLContext::CreateGLContext( |
return context; |
} |
- case kGLImplementationEGLGLES2: { |
- scoped_refptr<GLContext> context(new GLContextEGL(share_group)); |
+ case kGLImplementationDesktopGL: { |
+ scoped_refptr<GLContext> context(new GLContextGLX(share_group)); |
if (!context->Initialize(compatible_surface)) |
return NULL; |
return context; |
} |
- case kGLImplementationDesktopGL: { |
- scoped_refptr<GLContext> context(new GLContextGLX(share_group)); |
+#endif |
+ case kGLImplementationEGLGLES2: { |
+ scoped_refptr<GLContext> context(new GLContextEGL(share_group)); |
if (!context->Initialize(compatible_surface)) |
return NULL; |