mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-26 22:31:05 +00:00
don't crash when doing a remote screenshot
This commit is contained in:
parent
91266619f3
commit
de7299a64f
2 changed files with 8 additions and 0 deletions
|
@ -530,6 +530,10 @@ SCR_ScreenShot (int width, int height)
|
|||
fracw = (float) vid.width / (float) w;
|
||||
frach = (float) vid.height / (float) h;
|
||||
|
||||
tex->width = w;
|
||||
tex->height = h;
|
||||
tex->palette = vid.palette;
|
||||
|
||||
for (y = 0; y < h; y++) {
|
||||
dest = tex->data + (w * 3 * y);
|
||||
|
||||
|
|
|
@ -585,6 +585,10 @@ SCR_ScreenShot (int width, int height)
|
|||
if (!tex)
|
||||
return 0;
|
||||
|
||||
tex->width = w;
|
||||
tex->height = h;
|
||||
tex->palette = vid.palette;
|
||||
|
||||
for (y = 0; y < h; y++) {
|
||||
dest = tex->data + (w * y);
|
||||
|
||||
|
|
Loading…
Reference in a new issue