mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-03 13:40:11 +01:00
init sp->sbuf_cache to avoid possible segfault
This commit is contained in:
parent
f9aa757187
commit
03145d864c
1 changed files with 1 additions and 0 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue