diff options
author | don bright <hugh.m.bright@gmail.com> | 2013-01-26 05:30:02 (GMT) |
---|---|---|
committer | don bright <hugh.m.bright@gmail.com> | 2013-01-26 05:30:02 (GMT) |
commit | 395628cb4ef7f8559c667af22fb273e21e4a5ad8 (patch) | |
tree | 9fc4cd53eda3370de06c872f9df299ee1d9629de /src/OffscreenContextGLX.cc | |
parent | a66ad9c4bc10696cd3167d3217c9aad532167705 (diff) |
refactor to remove duplicate code
Diffstat (limited to 'src/OffscreenContextGLX.cc')
-rw-r--r-- | src/OffscreenContextGLX.cc | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/src/OffscreenContextGLX.cc b/src/OffscreenContextGLX.cc index 73794cc..dee47ed 100644 --- a/src/OffscreenContextGLX.cc +++ b/src/OffscreenContextGLX.cc @@ -297,22 +297,6 @@ bool teardown_offscreen_context(OffscreenContext *ctx) } /*! - Capture framebuffer from OpenGL and write it to the given filename as PNG. -*/ -bool save_framebuffer(OffscreenContext *ctx, const char *filename) -{ - std::ofstream fstream(filename); - if (!fstream.is_open()) { - PRINTB("Can't open file \"%s\" for writing", filename); - return false; - } else { - save_framebuffer(ctx, fstream); - fstream.close(); - } - return true; -} - -/*! Capture framebuffer from OpenGL and write it to the given ostream */ bool save_framebuffer(OffscreenContext *ctx, std::ostream &output) @@ -339,7 +323,3 @@ bool save_framebuffer(OffscreenContext *ctx, std::ostream &output) return writeok; } -void bind_offscreen_context(OffscreenContext *ctx) -{ - if (ctx) fbo_bind(ctx->fbo); -} |