diff options
author | Brian <brian.paul@tungstengraphics.com> | 2007-06-15 10:54:08 -0600 |
---|---|---|
committer | Brian <brian.paul@tungstengraphics.com> | 2007-06-15 10:54:08 -0600 |
commit | 1119852d0272c5ae43b09024b61f6e53c356ee65 (patch) | |
tree | 9a49c2a6acde60993ee560837890d86a822f81eb /src/mesa/pipe/softpipe/sp_state_surface.c | |
parent | fde755aefb3559731a734110c7172badee9f14f9 (diff) |
framebuffer state
Diffstat (limited to 'src/mesa/pipe/softpipe/sp_state_surface.c')
-rw-r--r-- | src/mesa/pipe/softpipe/sp_state_surface.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/mesa/pipe/softpipe/sp_state_surface.c b/src/mesa/pipe/softpipe/sp_state_surface.c index 989f2e29d8..d089fe0632 100644 --- a/src/mesa/pipe/softpipe/sp_state_surface.c +++ b/src/mesa/pipe/softpipe/sp_state_surface.c @@ -51,3 +51,17 @@ void softpipe_set_cbuf_state( struct pipe_context *pipe, } +/* + * XXX this might get moved someday + */ +void softpipe_set_framebuffer_state( struct pipe_context *pipe, + const struct pipe_framebuffer_state *fb ) +{ + struct softpipe_context *softpipe = softpipe_context(pipe); + + softpipe->framebuffer = *fb; /* struct copy */ + + softpipe->dirty |= G_NEW_FRAMEBUFFER; +} + + |