fixed a bug with rendering renderbuffer to SDL_Surface (vid.yres used instead of y)

This commit is contained in:
Zeno Rogue 2018-09-13 00:35:54 +02:00
parent 198ae61ae4
commit 92517d7413
1 changed files with 1 additions and 1 deletions

View File

@ -120,7 +120,7 @@ SDL_Surface *renderbuffer::render() {
GLERR("readPixels");
for(int iy=0; iy<y/2; iy++)
for(int ix=0; ix<x; ix++)
swap(qpixel(srf,ix,iy), qpixel(srf,ix,vid.yres-1-iy));
swap(qpixel(srf,ix,iy), qpixel(srf,ix,y-1-iy));
}
return srf;
}