the output is rather mangled but the client no longer crashes

This commit is contained in:
Bill Currie 2002-12-10 05:04:30 +00:00
parent 74ee0cfd0e
commit 7da551d044

View file

@ -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;