draw: check for out-of-memory conditions in the AA line module.
authorMatthew McClure <mcclurem@vmware.com>
Fri, 21 Jun 2013 19:44:44 +0000 (12:44 -0700)
committerBrian Paul <brianp@vmware.com>
Mon, 24 Jun 2013 14:36:47 +0000 (08:36 -0600)
commite5bf19ac1cf28fb588d8caf9397cd3c016737378
tree033a4f119a1a27a05237138a2e280141799eb616
parent06badea0da610731405257aa687943bdff1d8bed
draw: check for out-of-memory conditions in the AA line module.

To prevent segfaults in the AA line module, the code will check for a
valid pointer to the aaline_stage in the draw context.

Fixes segfault from backtrace:

* aaline_stage_from_pipe
  aaline_delete_fs_state

Reviewed-by: Brian Paul <brianp@vmware.com>
src/gallium/auxiliary/draw/draw_pipe_aaline.c