summaryrefslogtreecommitdiff
path: root/tests/OffscreenContextWGL.cc
diff options
context:
space:
mode:
authordon bright <hugh.m.bright@gmail.com>2011-10-16 04:44:21 (GMT)
committerdon bright <hugh.m.bright@gmail.com>2011-10-16 04:44:21 (GMT)
commit7735f5510cdc2d396092d04ed98a2dbaec347608 (patch)
treeb97a7d472a310e5c3c5d2f69465c62b4e0bafc4e /tests/OffscreenContextWGL.cc
parente79ee827185e19daac8f4d2385cce44098374d64 (diff)
opencsgtest and throwntogethertest windows fix
Diffstat (limited to 'tests/OffscreenContextWGL.cc')
-rw-r--r--tests/OffscreenContextWGL.cc6
1 files changed, 5 insertions, 1 deletions
diff --git a/tests/OffscreenContextWGL.cc b/tests/OffscreenContextWGL.cc
index 17c49c6..b4170d1 100644
--- a/tests/OffscreenContextWGL.cc
+++ b/tests/OffscreenContextWGL.cc
@@ -68,8 +68,12 @@ LRESULT CALLBACK WndProc(HWND hwnd, UINT message, WPARAM wparam, LPARAM lparam)
bool create_wgl_dummy_context(OffscreenContext &ctx)
{
- // this call alters ctx->window and ctx->openGLContext
+ // this function alters ctx->window and ctx->openGLContext
// and ctx->dev_context if successfull
+
+ // stop Windows from producing dialog boxes about "this application has failed"
+ SetErrorMode(SEM_NOGPFAULTERRORBOX|SEM_NOOPENFILEERRORBOX|SEM_FAILCRITICALERRORS);
+
// create window
HINSTANCE inst = GetModuleHandle(0);
contact: Jan Huwald // Impressum