Fix XCreateWindow BadMatch with depth 32 visuals
authorRobert Morell <rmorell@nvidia.com>
Wed, 10 Jan 2018 21:31:33 +0000 (13:31 -0800)
committerAlexander Galazin <Alexander.Galazin@arm.com>
Thu, 1 Feb 2018 11:59:32 +0000 (06:59 -0500)
commitaf57c99056538393e99925d6c3bee0253889a7c3
tree0cc3a7b745c79dfb447185a773aca4cb6f1a4e1f
parent0f759d88a70710ee25c564e1b1e9fd63fd67eec0
Fix XCreateWindow BadMatch with depth 32 visuals

For the common case of a depth 24 root window, when creating a window
with a visual of depth 32, attempting to use a depth of CopyFromParent
will result in a BadMatch error.

Fix this by passing the visual's depth to XCreateWindow explicitly --
fortunately the VisualInfo structure was already queried.

Components: Framework

VK-GL-CTS issue: 938

Change-Id: I54b142b6105c7f328e76d7ea0f9b01e635380e4e
framework/platform/lnx/X11/tcuLnxX11.cpp