summaryrefslogtreecommitdiff
path: root/src/gallium/state_trackers/wgl/stw_device.c
diff options
context:
space:
mode:
authorJosé Fonseca <jfonseca@vmware.com>2014-06-03 18:08:34 +0100
committerJosé Fonseca <jfonseca@vmware.com>2014-06-04 10:25:08 +0100
commit122e23249583d233e8a988abe95dcb5d76fa6b98 (patch)
tree7de365da329a1a35fad5e05fc7f1249a89f7cd4f /src/gallium/state_trackers/wgl/stw_device.c
parent7e0dd80f11eae748be4c4e13916c110e4a0ff45d (diff)
wgl: Disable CRT message boxes when Windows system error messages boxes are disabled.
At least on MSVC we statically link against the CRT, so we must disable the CRT message boxes if we want unattended testing. The messages are convenient when running manually, so let them be if the system error message boxes are not disabled.
Diffstat (limited to 'src/gallium/state_trackers/wgl/stw_device.c')
-rw-r--r--src/gallium/state_trackers/wgl/stw_device.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gallium/state_trackers/wgl/stw_device.c b/src/gallium/state_trackers/wgl/stw_device.c
index 8f2cf9c7a1c..025dbdc8384 100644
--- a/src/gallium/state_trackers/wgl/stw_device.c
+++ b/src/gallium/state_trackers/wgl/stw_device.c
@@ -69,6 +69,8 @@ stw_init(const struct stw_winsys *stw_winsys)
static struct stw_device stw_dev_storage;
struct pipe_screen *screen;
+ debug_disable_error_message_boxes();
+
debug_printf("%s\n", __FUNCTION__);
assert(!stw_dev);