summaryrefslogtreecommitdiff
path: root/src/gallium/state_trackers
diff options
context:
space:
mode:
authorLuca Barbieri <luca@luca-barbieri.com>2010-09-24 14:52:13 +0200
committerLuca Barbieri <luca@luca-barbieri.com>2010-09-24 15:12:19 +0200
commitdb1fbb1efc10ee4853c3fbdf63567e62fdde7447 (patch)
tree2b64456588fcacfc753e0eee6348909591244267 /src/gallium/state_trackers
parentf1063cfee213ba92f7c9e34199caccf4bed78c1c (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.cpp1
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 ef256a80c7..a75a953abf 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