summaryrefslogtreecommitdiff
path: root/tests/OffscreenContextWGL.cc
diff options
context:
space:
mode:
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