summaryrefslogtreecommitdiffstats
path: root/src/mesa/state_tracker
diff options
context:
space:
mode:
authorBrian <[email protected]>2007-06-20 13:10:48 -0600
committerBrian <[email protected]>2007-06-20 13:10:48 -0600
commitb7c646d1bcf4b6fa285996d1b9b660ce478190f6 (patch)
tree76c122ce2ec8deab8574bd53c6db1742cbe30ae7 /src/mesa/state_tracker
parentabf45c2a3db39fc1690e282e7f7603bc1d81f647 (diff)
actually use new glClear code
Diffstat (limited to 'src/mesa/state_tracker')
-rw-r--r--src/mesa/state_tracker/st_draw.c14
-rw-r--r--src/mesa/state_tracker/st_draw.h4
2 files changed, 18 insertions, 0 deletions
diff --git a/src/mesa/state_tracker/st_draw.c b/src/mesa/state_tracker/st_draw.c
index 1f6c261bc24..55b98629dbd 100644
--- a/src/mesa/state_tracker/st_draw.c
+++ b/src/mesa/state_tracker/st_draw.c
@@ -105,3 +105,17 @@ void st_destroy_draw( struct st_context *st )
/* Nothing to do.
*/
}
+
+
+/** XXX temporary here */
+void
+st_clear(struct st_context *st, GLboolean color, GLboolean depth,
+ GLboolean stencil, GLboolean accum)
+{
+ /* Validate driver and pipe state:
+ */
+ st_validate_state( st );
+
+ st->pipe->clear(st->pipe, color, depth, stencil, accum);
+}
+
diff --git a/src/mesa/state_tracker/st_draw.h b/src/mesa/state_tracker/st_draw.h
index f51059706ad..7a3ba521300 100644
--- a/src/mesa/state_tracker/st_draw.h
+++ b/src/mesa/state_tracker/st_draw.h
@@ -37,4 +37,8 @@
void st_init_draw( struct st_context *st );
void st_destroy_draw( struct st_context *st );
+/** XXX temporary here */
+void st_clear(struct st_context *st, GLboolean color, GLboolean depth,
+ GLboolean stencil, GLboolean accum);
+
#endif