draw/gs: Return early if the passed geometry shader is null
authorZack Rusin <zackr@vmware.com>
Wed, 17 Apr 2013 03:17:08 +0000 (20:17 -0700)
committerZack Rusin <zackr@vmware.com>
Wed, 17 Apr 2013 06:38:47 +0000 (23:38 -0700)
commitbe497ac9d3b5c50a4cd126578081bd54b68f16a9
tree15c6fd0fce3284ed8f9c551f6b45cdc00eef36f2
parent80ee4a407a2668f6a6a410c3e56ae9910510f773
draw/gs: Return early if the passed geometry shader is null

Can happen if we were using stream output without geometry
shader, by returning early we avoid a crash.

Signed-off-by: Zack Rusin <zackr@vmware.com>
Reviewed-by: Jose Fonseca <jfonseca@vmware.com>
src/gallium/auxiliary/draw/draw_gs.c