Chromium Code Reviews| Index: ui/gl/gl_surface_x11.cc |
| diff --git a/ui/gl/gl_surface_x11.cc b/ui/gl/gl_surface_x11.cc |
| index 895eb937a385bdb7763ec91fa77a5927d7c654d9..a6f43c0a202712a2487116acb72085fd6ccb6276 100644 |
| --- a/ui/gl/gl_surface_x11.cc |
| +++ b/ui/gl/gl_surface_x11.cc |
| @@ -341,7 +341,7 @@ scoped_refptr<GLSurface> GLSurface::CreateOffscreenGLSurface( |
| } |
| EGLNativeDisplayType GetPlatformDefaultEGLNativeDisplay() { |
| - return gfx::GetXDisplay(); |
| + return XDisplayToEGLNativeDisplay(gfx::GetXDisplay()); |
| } |
| } // namespace gfx |