From db1fbb1efc10ee4853c3fbdf63567e62fdde7447 Mon Sep 17 00:00:00 2001 From: Luca Barbieri Date: Fri, 24 Sep 2010 14:52:13 +0200 Subject: [PATCH] d3d1x: assert if X visual is not among enumerated visuals --- src/gallium/state_trackers/d3d1x/dxgi/src/dxgi_native.cpp | 1 + 1 file changed, 1 insertion(+) 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 -- 2.30.2