diff options
author | Brian Paul <[email protected]> | 2000-10-17 00:42:02 +0000 |
---|---|---|
committer | Brian Paul <[email protected]> | 2000-10-17 00:42:02 +0000 |
commit | d3672166787028857ea51ad9570cab7e173898c3 (patch) | |
tree | 21e8d5af6eb630109fda7043b30d41d939640183 /src/mesa/main/buffers.c | |
parent | 1873b567b28a3e3f4d94d0eacb27ffd235ec9529 (diff) |
ported render begin/end calls from Mesa 3.4
Diffstat (limited to 'src/mesa/main/buffers.c')
-rw-r--r-- | src/mesa/main/buffers.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/mesa/main/buffers.c b/src/mesa/main/buffers.c index dfa8a77d345..7db265dff1b 100644 --- a/src/mesa/main/buffers.c +++ b/src/mesa/main/buffers.c @@ -1,4 +1,4 @@ -/* $Id: buffers.c,v 1.12 2000/09/26 20:53:53 brianp Exp $ */ +/* $Id: buffers.c,v 1.13 2000/10/17 00:42:02 brianp Exp $ */ /* * Mesa 3-D graphics library @@ -290,6 +290,8 @@ _mesa_Clear( GLbitfield mask ) } #endif + RENDER_START(ctx); + /* do software clearing here */ if (newMask) { if (newMask & ctx->Color.DrawDestMask) clear_color_buffers(ctx); @@ -305,6 +307,8 @@ _mesa_Clear( GLbitfield mask ) _mesa_clear_alpha_buffers( ctx ); } + RENDER_FINISH(ctx); + #ifdef PROFILE ctx->ClearTime += gl_time() - t0; ctx->ClearCount++; |