draw: Save original driver functions earlier.
authorJosé Fonseca <jfonseca@vmware.com>
Wed, 20 Jun 2012 13:25:46 +0000 (14:25 +0100)
committerJosé Fonseca <jfonseca@vmware.com>
Thu, 23 Jan 2014 15:49:32 +0000 (15:49 +0000)
commit840154dc5002f7291aa2ece5322be7c2e40d9b6d
treeab91aef98add0be634a71b2d6a20371da709e8a1
parent1a441805781382067e92cd9f3b324f23164c3024
draw: Save original driver functions earlier.

Otherwise they will be NULL when stage destroy is invoked prematurely,
(i.e, on out of memory).

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