Commit 9de512e2 by Corentin Wallez

WindowSurfaceGLX: Fix child window creation size

This makes Chrome on ANGLE work on Linux without obvious bugs. BUG=angleproject:892 Change-Id: I595ac00a6646cb407941932b0d4f9f020d4cd059 Reviewed-on: https://chromium-review.googlesource.com/282057Reviewed-by: 's avatarGeoff Lang <geofflang@chromium.org> Reviewed-by: 's avatarJamie Madill <jmadill@chromium.org> Tested-by: 's avatarCorentin Wallez <cwallez@chromium.org>
parent e6d4e12c
...@@ -86,7 +86,7 @@ egl::Error WindowSurfaceGLX::initialize() ...@@ -86,7 +86,7 @@ egl::Error WindowSurfaceGLX::initialize()
attributes.background_pixel = 0; attributes.background_pixel = 0;
//TODO(cwallez) set up our own error handler to see if the call failed //TODO(cwallez) set up our own error handler to see if the call failed
mWindow = XCreateWindow(mDisplay, mParent, 0, 0, mParentWidth, mParentWidth, mWindow = XCreateWindow(mDisplay, mParent, 0, 0, mParentWidth, mParentHeight,
0, visualInfo->depth, InputOutput, visual, attributeMask, &attributes); 0, visualInfo->depth, InputOutput, visual, attributeMask, &attributes);
mGLXWindow = mGLX.createWindow(mFBConfig, mWindow, nullptr); mGLXWindow = mGLX.createWindow(mFBConfig, mWindow, nullptr);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment