projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
26d7295
)
call RENDER_START/FINISH in read_color_image()
author
Brian Paul
<brian.paul@tungstengraphics.com>
Tue, 21 Nov 2000 23:25:40 +0000
(23:25 +0000)
committer
Brian Paul
<brian.paul@tungstengraphics.com>
Tue, 21 Nov 2000 23:25:40 +0000
(23:25 +0000)
src/mesa/main/teximage.c
patch
|
blob
|
history
diff --git
a/src/mesa/main/teximage.c
b/src/mesa/main/teximage.c
index 6ef5554b6f19523c514b1c8a315e813710f3948a..25948e2bb22bc25667c38d06d5752cffe68c0d5a 100644
(file)
--- a/
src/mesa/main/teximage.c
+++ b/
src/mesa/main/teximage.c
@@
-1,4
+1,4
@@
-/* $Id: teximage.c,v 1.6
3 2000/11/19 23:10:25
brianp Exp $ */
+/* $Id: teximage.c,v 1.6
4 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 );