From 03c87b518be1fe3f40239156fa9cf40dee5e406f Mon Sep 17 00:00:00 2001 From: Steven Fuller Date: Sat, 30 Nov 2002 01:41:25 +0000 Subject: change pack alignment for opengl screenshot saving. more useful error messages from ffread.cpp and language.c --- src/main.c | 1 + 1 file changed, 1 insertion(+) (limited to 'src/main.c') diff --git a/src/main.c b/src/main.c index 43a0278..22918df 100644 --- a/src/main.c +++ b/src/main.c @@ -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 { -- cgit v1.3