projects
/
supertux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5c24ecd
)
Fixed screenshots of windows that have a sizes not dividable by 4
author
Ingo Ruhnke
<grumbel@gmx.de>
Fri, 20 Nov 2009 06:10:03 +0000
(06:10 +0000)
committer
Ingo Ruhnke
<grumbel@gmx.de>
Fri, 20 Nov 2009 06:10:03 +0000
(06:10 +0000)
SVN-Revision: 6066
src/video/gl/gl_renderer.cpp
patch
|
blob
|
history
diff --git
a/src/video/gl/gl_renderer.cpp
b/src/video/gl/gl_renderer.cpp
index
41c8eec
..
bffa2cd
100644
(file)
--- a/
src/video/gl/gl_renderer.cpp
+++ b/
src/video/gl/gl_renderer.cpp
@@
-470,6
+470,7
@@
GLRenderer::do_take_screenshot()
SDL_FreeSurface(shot_surf);
return;
}
+ glPixelStorei(GL_PACK_ALIGNMENT, 1);
glReadPixels(0, 0, SCREEN_WIDTH, SCREEN_HEIGHT, GL_RGB, GL_UNSIGNED_BYTE, pixels);
// copy array line-by-line