summaryrefslogtreecommitdiff
path: root/src/mesa/pipe/softpipe/sp_context.c
diff options
context:
space:
mode:
authorBrian <brian.paul@tungstengraphics.com>2007-06-20 08:47:09 -0600
committerBrian <brian.paul@tungstengraphics.com>2007-06-20 08:47:09 -0600
commit73f96c51052bf5233191d852ef463462306bf1d5 (patch)
tree29a1f9f4b5f052f7894dce351ebfb4a8ae69b85a /src/mesa/pipe/softpipe/sp_context.c
parent6cb2d0cb71d2019bd2c941a8c042e56275b22c1c (diff)
Initial work for glClear(), clear color state.
Diffstat (limited to 'src/mesa/pipe/softpipe/sp_context.c')
-rw-r--r--src/mesa/pipe/softpipe/sp_context.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/mesa/pipe/softpipe/sp_context.c b/src/mesa/pipe/softpipe/sp_context.c
index e0acf4177b..7ab65162bd 100644
--- a/src/mesa/pipe/softpipe/sp_context.c
+++ b/src/mesa/pipe/softpipe/sp_context.c
@@ -36,6 +36,7 @@
#include "vf/vf.h"
#include "sp_context.h"
+#include "sp_clear.h"
#include "sp_prim.h"
#include "sp_state.h"
#include "sp_draw.h"
@@ -68,6 +69,7 @@ struct pipe_context *softpipe_create( void )
softpipe->pipe.destroy = softpipe_destroy;
softpipe->pipe.set_framebuffer_state = softpipe_set_framebuffer_state;
softpipe->pipe.set_clip_state = softpipe_set_clip_state;
+ softpipe->pipe.set_clear_color_state = softpipe_set_clear_color_state;
softpipe->pipe.set_point_state = softpipe_set_point_state;
softpipe->pipe.set_viewport = softpipe_set_viewport;
softpipe->pipe.set_setup_state = softpipe_set_setup_state;
@@ -75,7 +77,7 @@ struct pipe_context *softpipe_create( void )
softpipe->pipe.set_fs_state = softpipe_set_fs_state;
softpipe->pipe.set_polygon_stipple = softpipe_set_polygon_stipple;
softpipe->pipe.draw_vb = softpipe_draw_vb;
-
+ softpipe->pipe.clear = softpipe_clear;
softpipe->prim.setup = prim_setup( softpipe );