From: Luca Barbieri Date: Fri, 24 Sep 2010 12:52:13 +0000 (+0200) Subject: d3d1x: assert if X visual is not among enumerated visuals X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=db1fbb1efc10ee4853c3fbdf63567e62fdde7447;p=mesa.git d3d1x: assert if X visual is not among enumerated visuals --- 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 GalliumDXGIObjectdisplay, (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