init sp->sbuf_cache to avoid possible segfault

This commit is contained in:
Brian 2007-10-20 15:52:59 -06:00
parent f9aa757187
commit 03145d864c

View file

@ -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;
}