summaryrefslogtreecommitdiff
path: root/tests/OffscreenContextWGL.cc
diff options
context:
space:
mode:
authorDon Bright <hugh.m.bright@gmail.com>2011-10-16 01:14:35 (GMT)
committerDon Bright <hugh.m.bright@gmail.com>2011-10-16 01:14:35 (GMT)
commit7332ec9fe260140ff74506fa2ba95e0a2bbf352e (patch)
treeab72752cc52e68d1ed77559cdd18d702ffc05b2c /tests/OffscreenContextWGL.cc
parent7735f5510cdc2d396092d04ed98a2dbaec347608 (diff)
clean up linux changes to fit with win32 changes.
Diffstat (limited to 'tests/OffscreenContextWGL.cc')
-rw-r--r--tests/OffscreenContextWGL.cc9
1 files changed, 2 insertions, 7 deletions
diff --git a/tests/OffscreenContextWGL.cc b/tests/OffscreenContextWGL.cc
index b4170d1..f120384 100644
--- a/tests/OffscreenContextWGL.cc
+++ b/tests/OffscreenContextWGL.cc
@@ -71,9 +71,6 @@ bool create_wgl_dummy_context(OffscreenContext &ctx)
// 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);
@@ -84,7 +81,7 @@ bool create_wgl_dummy_context(OffscreenContext &ctx)
wc.hInstance = inst;
wc.lpszClassName = "OpenSCAD";
RegisterClass( &wc );
-
+
HWND window = CreateWindow( "OpenSCAD", "OpenSCAD",
WS_CAPTION | WS_POPUPWINDOW, //| WS_VISIBLE,
0, 0, ctx.width, ctx.height, NULL, NULL, inst, NULL );
@@ -133,7 +130,7 @@ bool create_wgl_dummy_context(OffscreenContext &ctx)
bool mcok = wglMakeCurrent( dev_context, gl_render_context );
if (!mcok) {
- cerr << "MS GDI - wglMakeCurrent failed\n";
+ cerr << "MS WGL - wglMakeCurrent failed\n";
return false;
}
@@ -154,7 +151,6 @@ OffscreenContext *create_offscreen_context(int w, int h)
// This call alters ctx->window and ctx->openGLContext
// and ctx->dev_context if successfull
if (!create_wgl_dummy_context( *ctx )) {
- cerr << "wgl dummy fail\n";
fflush(stderr);
return NULL;
}
@@ -169,7 +165,6 @@ OffscreenContext *create_offscreen_context(int w, int h)
ctx->fbo = fbo_new();
if (!fbo_init(ctx->fbo, w, h)) {
- cerr << "fbo didn't init\n";
return NULL;
}
contact: Jan Huwald // Impressum