summaryrefslogtreecommitdiffstats
path: root/src/mesa/main/buffers.c
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2000-10-17 00:42:02 +0000
committerBrian Paul <[email protected]>2000-10-17 00:42:02 +0000
commitd3672166787028857ea51ad9570cab7e173898c3 (patch)
tree21e8d5af6eb630109fda7043b30d41d939640183 /src/mesa/main/buffers.c
parent1873b567b28a3e3f4d94d0eacb27ffd235ec9529 (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.c6
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++;