aboutsummaryrefslogtreecommitdiffstats
path: root/src/mesa/main
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2000-11-21 23:25:40 +0000
committerBrian Paul <[email protected]>2000-11-21 23:25:40 +0000
commitc34cea7de54525a337c904cf22fc026b7ca31578 (patch)
tree1ee8dbdbf9226036921f194da3e60f5d8a164bb7 /src/mesa/main
parent26d729581fcf1991fbcc8320f64fa40d73170e95 (diff)
call RENDER_START/FINISH in read_color_image()
Diffstat (limited to 'src/mesa/main')
-rw-r--r--src/mesa/main/teximage.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/mesa/main/teximage.c b/src/mesa/main/teximage.c
index 6ef5554b6f1..25948e2bb22 100644
--- a/src/mesa/main/teximage.c
+++ b/src/mesa/main/teximage.c
@@ -1,4 +1,4 @@
-/* $Id: teximage.c,v 1.63 2000/11/19 23:10:25 brianp Exp $ */
+/* $Id: teximage.c,v 1.64 2000/11/21 23:25:40 brianp Exp $ */
/*
* Mesa 3-D graphics library
@@ -2620,6 +2620,8 @@ read_color_image( GLcontext *ctx, GLint x, GLint y,
(*ctx->Driver.SetReadBuffer)( ctx, ctx->ReadBuffer,
ctx->Pixel.DriverReadBuffer );
+ RENDER_START(ctx);
+
dst = image;
stride = width * 4;
for (i = 0; i < height; i++) {
@@ -2628,6 +2630,8 @@ read_color_image( GLcontext *ctx, GLint x, GLint y,
dst += stride;
}
+ RENDER_FINISH(ctx);
+
/* Read from draw buffer (the default) */
(*ctx->Driver.SetReadBuffer)( ctx, ctx->DrawBuffer,
ctx->Color.DriverDrawBuffer );