diff options
author | Brian Paul <[email protected]> | 2010-04-07 07:09:52 -0600 |
---|---|---|
committer | Brian Paul <[email protected]> | 2010-04-07 07:09:57 -0600 |
commit | 78fd65fd2c9b537b88bf35454b98323029ee1bb3 (patch) | |
tree | 1a0d24ac42d42dbf882934111894490e03a97221 /src/gallium/auxiliary/draw/draw_pt.c | |
parent | da17623c33cddf96c0f63b32e25ebc33b04a2b14 (diff) |
draw: init draw->pt.middle.general = NULL just to be safe
This field should be null from the initial calloc() of the draw context,
but let's be safe (and improve understanding of the code).
Diffstat (limited to 'src/gallium/auxiliary/draw/draw_pt.c')
-rw-r--r-- | src/gallium/auxiliary/draw/draw_pt.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gallium/auxiliary/draw/draw_pt.c b/src/gallium/auxiliary/draw/draw_pt.c index b7a998248dc..a60a3b2a2b1 100644 --- 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) |