OSDN Git Service

linker: Wrap access of producer_var with a NULL check
authorIan Romanick <ian.d.romanick@intel.com>
Mon, 1 Dec 2014 22:16:24 +0000 (14:16 -0800)
committerIan Romanick <ian.d.romanick@intel.com>
Wed, 3 Dec 2014 19:33:49 +0000 (11:33 -0800)
commit5eca78a00a5de442aaf541a1095d5cfa6b4f45de
tree703860484f000f83e36ea259509027392fe9032b
parenta2f2eebfdfb9c19e45792101fc5cad3dd3f0f4d6
linker: Wrap access of producer_var with a NULL check

producer_var could be NULL if consumer_var is not NULL and
consumer_is_fs is false.  This will occur when the producer is NULL and
the consumer is the geometry shader for a program that contains only a
geometry shader.  This will occur starting with the next patch.

Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
Cc: pavol@klacansky.com
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=82585
Reviewed-by: Jordan Justen <jordan.l.justen@intel.com>
src/glsl/link_varyings.cpp