OSDN Git Service
(root)
/
android-x86
/
external-mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
da17623
)
draw: init draw->pt.middle.general = NULL just to be safe
author
Brian Paul
<brianp@vmware.com>
Wed, 7 Apr 2010 13:09:52 +0000
(07:09 -0600)
committer
Brian Paul
<brianp@vmware.com>
Wed, 7 Apr 2010 13:09:57 +0000
(07:09 -0600)
This field should be null from the initial calloc() of the draw context,
but let's be safe (and improve understanding of the code).
src/gallium/auxiliary/draw/draw_pt.c
patch
|
blob
|
history
diff --git
a/src/gallium/auxiliary/draw/draw_pt.c
b/src/gallium/auxiliary/draw/draw_pt.c
index
b7a9982
..
a60a3b2
100644
(file)
--- a/
src/gallium/auxiliary/draw/draw_pt.c
+++ b/
src/gallium/auxiliary/draw/draw_pt.c
@@
-142,6
+142,8
@@
boolean draw_pt_init( struct draw_context *draw )
#if DRAW_LLVM
draw->pt.middle.general = draw_pt_fetch_pipeline_or_emit_llvm( draw );
+#else
+ draw->pt.middle.general = NULL;
#endif
if (!draw->pt.middle.general)