diff options
author | Brian Paul <[email protected]> | 1999-11-24 18:48:30 +0000 |
---|---|---|
committer | Brian Paul <[email protected]> | 1999-11-24 18:48:30 +0000 |
commit | 3f02f90f943a996d88abc20f74503afbb56a4c98 (patch) | |
tree | f12094c909404fe909730a0e4951236c91e741c7 /src/mesa/main/teximage.c | |
parent | 5bf7f47083f29f4e5f44107f2f398b8b37dd423b (diff) |
added support for separate read/draw buffers per context
Diffstat (limited to 'src/mesa/main/teximage.c')
-rw-r--r-- | src/mesa/main/teximage.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/mesa/main/teximage.c b/src/mesa/main/teximage.c index 42d1c90efbf..56955af6c86 100644 --- a/src/mesa/main/teximage.c +++ b/src/mesa/main/teximage.c @@ -1,4 +1,4 @@ -/* $Id: teximage.c,v 1.12 1999/11/11 01:22:27 brianp Exp $ */ +/* $Id: teximage.c,v 1.13 1999/11/24 18:48:31 brianp Exp $ */ /* * Mesa 3-D graphics library @@ -1632,7 +1632,8 @@ read_color_image( GLcontext *ctx, GLint x, GLint y, dst = image; stride = width * 4 * sizeof(GLubyte); for (i = 0; i < height; i++) { - gl_read_rgba_span( ctx, width, x, y + i, (GLubyte (*)[4]) dst ); + gl_read_rgba_span( ctx, ctx->ReadBuffer, width, x, y + i, + (GLubyte (*)[4]) dst ); dst += stride; } @@ -1732,7 +1733,7 @@ copy_tex_sub_image( GLcontext *ctx, struct gl_texture_image *dest, for (i = 0;i < height; i++) { GLubyte rgba[MAX_WIDTH][4]; GLubyte *dst; - gl_read_rgba_span( ctx, width, srcx, srcy + i, rgba ); + gl_read_rgba_span( ctx, ctx->ReadBuffer, width, srcx, srcy + i, rgba ); dst = dest->Data + ( zoffset + (dsty+i) * texwidth + dstx) * components; _mesa_unpack_ubyte_color_span(ctx, width, format, dst, GL_RGBA, GL_UNSIGNED_BYTE, rgba, |