mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-28 20:48:13 +02:00
d3d1x: assert if X visual is not among enumerated visuals
This commit is contained in:
parent
f1063cfee2
commit
db1fbb1efc
1 changed files with 1 additions and 0 deletions
|
|
@ -902,6 +902,7 @@ struct GalliumDXGISwapChain : public GalliumDXGIObject<IDXGISwapChain, GalliumDX
|
|||
{
|
||||
XWindowAttributes xwa;
|
||||
XGetWindowAttributes((Display*)parent->display, (Window)window, &xwa);
|
||||
assert(adapter->configs_by_native_visual_id.count(xwa.visual->visualid));
|
||||
config_num = adapter->configs_by_native_visual_id[xwa.visual->visualid];
|
||||
}
|
||||
else
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue