projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f9aa757
)
init sp->sbuf_cache to avoid possible segfault
author
Brian
<brian.paul@tungstengraphics.com>
Sat, 20 Oct 2007 21:52:59 +0000
(15:52 -0600)
committer
Brian
<brian.paul@tungstengraphics.com>
Sat, 20 Oct 2007 21:52:59 +0000
(15:52 -0600)
src/mesa/pipe/softpipe/sp_context.c
patch
|
blob
|
history
diff --git
a/src/mesa/pipe/softpipe/sp_context.c
b/src/mesa/pipe/softpipe/sp_context.c
index 87eaf6fb54450f01bde75349c1fa87684e42b4f1..10c53a257bd1e9294dbc314ccda0f6f4ce9c705a 100644
(file)
--- 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;
}