diff options
author | Brian Paul <[email protected]> | 2001-05-09 20:42:37 +0000 |
---|---|---|
committer | Brian Paul <[email protected]> | 2001-05-09 20:42:37 +0000 |
commit | 7884aa151fb630b3533e060d24f1e0f51724f08b (patch) | |
tree | a46163b15858eceb5e282a4d211492c2e7c906f0 /src/mesa/drivers/windows | |
parent | a41edc31ce81daf69157a345525933ca6c560004 (diff) |
fixed Y flip problem in read_rgba_pixels() (Frank Warmerdam)
Diffstat (limited to 'src/mesa/drivers/windows')
-rw-r--r-- | src/mesa/drivers/windows/wmesa.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/mesa/drivers/windows/wmesa.c b/src/mesa/drivers/windows/wmesa.c index 581106cb4f8..b65fc599c53 100644 --- a/src/mesa/drivers/windows/wmesa.c +++ b/src/mesa/drivers/windows/wmesa.c @@ -1,4 +1,4 @@ -/* $Id: wmesa.c,v 1.15 2001/04/26 19:14:35 brianp Exp $ */ +/* $Id: wmesa.c,v 1.16 2001/05/09 20:42:37 brianp Exp $ */ /* * Windows (Win32) device driver for Mesa 3.4 @@ -1050,7 +1050,8 @@ static void read_rgba_pixels( const GLcontext* ctx, assert(Current->rgb_flag==GL_TRUE); for (i=0; i<n; i++) { if (mask[i]) { - Color=GetPixel(DC,x[i],FLIP(y[i])); + GLint y2 = Current->Height - y[i] - 1; + Color=GetPixel(DC,x[i],y2); rgba[i][RCOMP] = GetRValue(Color); rgba[i][GCOMP] = GetGValue(Color); rgba[i][BCOMP] = GetBValue(Color); |