From 7da551d04455ae38ef9431368e4493ef85f36ef0 Mon Sep 17 00:00:00 2001 From: Bill Currie Date: Tue, 10 Dec 2002 05:04:30 +0000 Subject: [PATCH] the output is rather mangled but the client no longer crashes --- libs/video/renderer/gl/gl_screen.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/video/renderer/gl/gl_screen.c b/libs/video/renderer/gl/gl_screen.c index a790c83a9..ab593b1b9 100644 --- a/libs/video/renderer/gl/gl_screen.c +++ b/libs/video/renderer/gl/gl_screen.c @@ -522,7 +522,7 @@ SCR_ScreenShot (int width, int height) return 0; qfglReadPixels (glx, gly, vid.width, vid.height, GL_RGB, GL_UNSIGNED_BYTE, - tex->data + vid.width * vid.height); + tex->data); w = (vid.width < width) ? vid.width : width; h = (vid.height < height) ? vid.height : height;