From 03145d864ce21094592ae847fbe8da57c419374e Mon Sep 17 00:00:00 2001 From: Brian Date: Sat, 20 Oct 2007 15:52:59 -0600 Subject: [PATCH] init sp->sbuf_cache to avoid possible segfault --- src/mesa/pipe/softpipe/sp_context.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/mesa/pipe/softpipe/sp_context.c b/src/mesa/pipe/softpipe/sp_context.c index 87eaf6f..10c53a2 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; } -- 2.7.4