| Index: ui/gl/gl_surface_egl.cc
|
| diff --git a/ui/gl/gl_surface_egl.cc b/ui/gl/gl_surface_egl.cc
|
| index c34ca0e70e7a25396a82cd9310a90c2ef0630cd6..43d0fe5f2c25616b848db23f643d539c75ad00db 100644
|
| --- a/ui/gl/gl_surface_egl.cc
|
| +++ b/ui/gl/gl_surface_egl.cc
|
| @@ -376,7 +376,8 @@ EGLConfig NativeViewGLSurfaceEGL::GetConfig() {
|
| // Get a config compatible with the window
|
| DCHECK(window_);
|
| XWindowAttributes win_attribs;
|
| - if (!XGetWindowAttributes(GetNativeDisplay(), window_, &win_attribs)) {
|
| + if (!XGetWindowAttributes(EGLNativeDisplayToXDisplay(GetNativeDisplay()),
|
| + window_, &win_attribs)) {
|
| return NULL;
|
| }
|
|
|
|
|