diff options
| author | Steven Fuller <relnev@icculus.org> | 2002-11-30 01:41:25 +0000 |
|---|---|---|
| committer | Patryk Obara <dreamer.tan@gmail.com> | 2019-08-20 02:22:37 +0200 |
| commit | 03c87b518be1fe3f40239156fa9cf40dee5e406f (patch) | |
| tree | 1ab387db057ed9c24b07a979be412c35d001f2eb /src/main.c | |
| parent | e8789932e58fb987f8525b26a29272a99980688b (diff) | |
change pack alignment for opengl screenshot saving.
more useful error messages from ffread.cpp and language.c
Diffstat (limited to 'src/main.c')
| -rw-r--r-- | src/main.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -182,6 +182,7 @@ unsigned char *GetScreenShot24(int *width, int *height) buf = (unsigned char *)malloc(surface->w * surface->h * 3); if (surface->flags & SDL_OPENGL) { + glPixelStorei(GL_PACK_ALIGNMENT, 1); glPixelStorei(GL_UNPACK_ALIGNMENT, 1); glReadPixels(0, 0, surface->w, surface->h, GL_RGB, GL_UNSIGNED_BYTE, buf); } else { |
