diff options
author | Brian Paul <brian.paul@tungstengraphics.com> | 2000-11-21 23:01:22 +0000 |
---|---|---|
committer | Brian Paul <brian.paul@tungstengraphics.com> | 2000-11-21 23:01:22 +0000 |
commit | baf3e77ee2ea0a8721715d540d88066771f2dd67 (patch) | |
tree | de4eb13f430e5a5ce732654b886d37c21f367552 /src/mesa/main/colortab.c | |
parent | 3c2e1022ed0a9fab82fddedd3ba4e20361665336 (diff) |
added some RENDER_START/RENDER_FINISH macros. Minor GLchan changes
Diffstat (limited to 'src/mesa/main/colortab.c')
-rw-r--r-- | src/mesa/main/colortab.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/mesa/main/colortab.c b/src/mesa/main/colortab.c index 12c8dbbde7..63b58e57f7 100644 --- a/src/mesa/main/colortab.c +++ b/src/mesa/main/colortab.c @@ -1,4 +1,4 @@ -/* $Id: colortab.c,v 1.27 2000/11/19 23:10:25 brianp Exp $ */ +/* $Id: colortab.c,v 1.28 2000/11/21 23:01:23 brianp Exp $ */ /* * Mesa 3-D graphics library @@ -633,7 +633,9 @@ _mesa_CopyColorTable(GLenum target, GLenum internalformat, width = MAX_WIDTH; /* read the data from framebuffer */ + RENDER_START(ctx); gl_read_rgba_span( ctx, ctx->ReadBuffer, width, x, y, data ); + RENDER_FINISH(ctx); /* Restore reading from draw buffer (the default) */ (*ctx->Driver.SetReadBuffer)( ctx, ctx->DrawBuffer, @@ -662,7 +664,9 @@ _mesa_CopyColorSubTable(GLenum target, GLsizei start, width = MAX_WIDTH; /* read the data from framebuffer */ + RENDER_START(ctx); gl_read_rgba_span( ctx, ctx->ReadBuffer, width, x, y, data ); + RENDER_FINISH(ctx); /* Restore reading from draw buffer (the default) */ (*ctx->Driver.SetReadBuffer)( ctx, ctx->DrawBuffer, |