diff options
author | Brian <brian.paul@tungstengraphics.com> | 2007-10-20 15:52:59 -0600 |
---|---|---|
committer | Brian <brian.paul@tungstengraphics.com> | 2007-10-20 15:52:59 -0600 |
commit | 03145d864ce21094592ae847fbe8da57c419374e (patch) | |
tree | 8aad8955284a2010853d119ead10c5876b7ce5bb /src/mesa/pipe/softpipe/sp_context.c | |
parent | f9aa75718708076e50033287fde993799878ecf6 (diff) |
init sp->sbuf_cache to avoid possible segfault
Diffstat (limited to 'src/mesa/pipe/softpipe/sp_context.c')
-rw-r--r-- | src/mesa/pipe/softpipe/sp_context.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/mesa/pipe/softpipe/sp_context.c b/src/mesa/pipe/softpipe/sp_context.c index 87eaf6fb54..10c53a257b 100644 --- a/src/mesa/pipe/softpipe/sp_context.c +++ b/src/mesa/pipe/softpipe/sp_context.c @@ -384,6 +384,7 @@ struct pipe_context *softpipe_create( struct pipe_winsys *pipe_winsys, softpipe->cbuf_cache[i] = sp_create_tile_cache(); softpipe->zbuf_cache = sp_create_tile_cache(); softpipe->sbuf_cache_sep = sp_create_tile_cache(); + softpipe->sbuf_cache = softpipe->sbuf_cache_sep; /* initial value */ return &softpipe->pipe; } |