glsl: Return NULL on _slan_gen_asm error path on non-debug builds.
authorVinson Lee <vlee@vmware.com>
Thu, 4 Mar 2010 08:58:36 +0000 (00:58 -0800)
committerVinson Lee <vlee@vmware.com>
Thu, 4 Mar 2010 08:58:36 +0000 (00:58 -0800)
commit3c90777fd7cce57486dc7d98e676ffe9dede55ae
treeb92df4928de245ba812e5616fb39cdf725e21b72
parentdf20c3943ab4e20055f8e731f112aa9fd8d66068
glsl: Return NULL on _slan_gen_asm error path on non-debug builds.

Exit the function early on the error path, instead of continuing, to
prevent a null pointer dereference later on.
src/mesa/shader/slang/slang_codegen.c