diff --git a/engine/d3d/vid_d3d.c b/engine/d3d/vid_d3d.c index 13fa026c9..4d4ed7244 100644 --- a/engine/d3d/vid_d3d.c +++ b/engine/d3d/vid_d3d.c @@ -800,7 +800,6 @@ static char *(D3D9_VID_GetRGBInfo) (int prepad, int *truevidwidth, int *truevi { IDirect3DSurface9 *surf; D3DLOCKED_RECT rect; - extern qboolean gammaworks; int i, j, c; qbyte *ret = BZ_Malloc(prepad + vid.pixelwidth*vid.pixelheight*3); qbyte *p; @@ -822,31 +821,15 @@ static char *(D3D9_VID_GetRGBInfo) (int prepad, int *truevidwidth, int *truevi c = prepad+vid.pixelwidth*vid.pixelheight*3; p = (qbyte *)rect.pBits; - if (gammaworks) + for (i=c-(3*vid.pixelwidth); i>=prepad; i-=(3*vid.pixelwidth)) { - extern qbyte gammatable[256]; - for (i=c-(3*vid.pixelwidth); i>=prepad; i-=(3*vid.pixelwidth)) + for (j=0; j=prepad; i-=(3*vid.pixelwidth)) - { - for (j=0; j