diff options
author | Luca Barbieri <[email protected]> | 2010-09-24 14:52:13 +0200 |
---|---|---|
committer | Luca Barbieri <[email protected]> | 2010-09-24 15:12:19 +0200 |
commit | db1fbb1efc10ee4853c3fbdf63567e62fdde7447 (patch) | |
tree | 2b64456588fcacfc753e0eee6348909591244267 /src/gallium/state_trackers | |
parent | f1063cfee213ba92f7c9e34199caccf4bed78c1c (diff) |
d3d1x: assert if X visual is not among enumerated visuals
Diffstat (limited to 'src/gallium/state_trackers')
-rw-r--r-- | src/gallium/state_trackers/d3d1x/dxgi/src/dxgi_native.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/gallium/state_trackers/d3d1x/dxgi/src/dxgi_native.cpp b/src/gallium/state_trackers/d3d1x/dxgi/src/dxgi_native.cpp index ef256a80c79..a75a953abfb 100644 --- a/src/gallium/state_trackers/d3d1x/dxgi/src/dxgi_native.cpp +++ b/src/gallium/state_trackers/d3d1x/dxgi/src/dxgi_native.cpp @@ -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 |