summaryrefslogtreecommitdiff
path: root/tests/OffscreenContextWGL.cc
diff options
context:
space:
mode:
authorDon Bright <hugh.m.bright@gmail.com>2011-10-16 16:52:13 (GMT)
committerDon Bright <hugh.m.bright@gmail.com>2011-10-16 16:52:13 (GMT)
commitc0592dc3b833a91457e28a6d80bcc58c1bb7938d (patch)
tree2aac2852de4037f6cd14d131d7c28e4c6cc66a20 /tests/OffscreenContextWGL.cc
parentde53382a3d1a7f47684cdda7c27d976c2e234ce9 (diff)
fix small bugs 1. error reporting 2. fbo teardown
Diffstat (limited to 'tests/OffscreenContextWGL.cc')
-rw-r--r--tests/OffscreenContextWGL.cc5
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/OffscreenContextWGL.cc b/tests/OffscreenContextWGL.cc
index 844c073..7e97676 100644
--- a/tests/OffscreenContextWGL.cc
+++ b/tests/OffscreenContextWGL.cc
@@ -172,12 +172,13 @@ OffscreenContext *create_offscreen_context(int w, int h)
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 );
- fbo_unbind(ctx->fbo);
- fbo_delete(ctx->fbo);
return true;
}
return false;
contact: Jan Huwald // Impressum