diff options
-rw-r--r-- | src/OffscreenContextWGL.cc | 2 | ||||
-rw-r--r-- | src/export_png.cc | 3 | ||||
-rw-r--r-- | src/openscad.cc | 2 |
3 files changed, 4 insertions, 3 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; diff --git a/src/export_png.cc b/src/export_png.cc index 7c62cea..e877b14 100644 --- a/src/export_png.cc +++ b/src/export_png.cc @@ -49,8 +49,7 @@ void export_png_with_cgal(CGAL_Nef_polyhedron *root_N, std::ostream &output) void export_png_with_opencsg(CGAL_Nef_polyhedron *root_N, std::ostream &output) { CsgInfo csgInfo; - output << "solid OpenSCAD_Model opencsg\n"; - output << "endsolid OpenSCAD_Model opencsg\n"; + output << "not implemented: solid OpenSCAD_Model opencsg png export\n"; } diff --git a/src/openscad.cc b/src/openscad.cc index 7ebad33..5caef88 100644 --- a/src/openscad.cc +++ b/src/openscad.cc @@ -400,11 +400,11 @@ int main(int argc, char **argv) } } } - delete root_node; #else fprintf(stderr, "OpenSCAD has been compiled without CGAL support!\n"); exit(1); #endif + delete root_node; } else if (useGUI) { |