summaryrefslogtreecommitdiff
path: root/src/OffscreenContextWGL.cc
diff options
context:
space:
mode:
authordon bright <hugh.m.bright@gmail.com>2013-01-31 03:26:53 (GMT)
committerdon bright <hugh.m.bright@gmail.com>2013-01-31 03:26:53 (GMT)
commit44bb37fdee6683e1f56d1983f3c53c98b6e3318a (patch)
tree521c0f50b5785b439411ac3f1c8df1ec8cca4cf9 /src/OffscreenContextWGL.cc
parent85378e44367a62116e8067105f0fe862a932ba8f (diff)
move 'delete root_node' where it was before merging master. cleanup
Diffstat (limited to 'src/OffscreenContextWGL.cc')
-rw-r--r--src/OffscreenContextWGL.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/OffscreenContextWGL.cc b/src/OffscreenContextWGL.cc
index b8e1481..4fe4c65 100644
--- a/src/OffscreenContextWGL.cc
+++ b/src/OffscreenContextWGL.cc
@@ -195,9 +195,11 @@ bool teardown_offscreen_context(OffscreenContext *ctx)
if (ctx) {
fbo_unbind(ctx->fbo);
fbo_delete(ctx->fbo);
+
wglMakeCurrent( NULL, NULL );
wglDeleteContext( ctx->openGLContext );
ReleaseDC( ctx->window, ctx->dev_context );
+
return true;
}
return false;
contact: Jan Huwald // Impressum