Project::OSiRiON - Git repositories
Project::OSiRiON
News . About . Screenshots . Downloads . Forum . Wiki . Tracker . Git
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStijn Buys <ingar@osirion.org>2010-12-06 21:33:34 +0000
committerStijn Buys <ingar@osirion.org>2010-12-06 21:33:34 +0000
commitc50095cab023e91ba2a4fec8dcb290e6d817124b (patch)
treee9511df876d45faffb428ee7ae342a8aabab4194 /src/render/screenshot.cc
parent8c7fa7dd3258e8d3e112fb9780249dd0d0ef008a (diff)
Re-enabled environment mapping with the skybox as cubemap.
Diffstat (limited to 'src/render/screenshot.cc')
-rw-r--r--src/render/screenshot.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/render/screenshot.cc b/src/render/screenshot.cc
index ea2659b..7b40156 100644
--- a/src/render/screenshot.cc
+++ b/src/render/screenshot.cc
@@ -106,9 +106,9 @@ void Screenshot::save()
render::Image image(State::width(), State::height(), 3);
glReadPixels(0, 0, (GLsizei) State::width(), (GLsizei) State::height(),
- GL_RGB, GL_UNSIGNED_BYTE, (void *) image.data());
+ GL_RGB, GL_UNSIGNED_BYTE, (void *) image.ptr());
- image.flip();
+ image.flip_vertical();
if (filetype == TYPEPNG) {
render::PNG::save(filename.c_str(), image);