ir_to_mesa: don't init unfirom if link failed
authorYuanhan Liu <yuanhan.liu@linux.intel.com>
Wed, 9 Nov 2011 06:55:53 +0000 (14:55 +0800)
committerYuanhan Liu <yuanhan.liu@linux.intel.com>
Tue, 15 Nov 2011 08:25:40 +0000 (16:25 +0800)
commit9d4d9d34d82646e4e7781bb25a64174d35680578
tree5c3d211a2a30826fcf2fce1ac526117a642d4d97
parentf1a677cefbe91a5c1a72dbeda94d2f13a9369e54
ir_to_mesa: don't init unfirom if link failed

Don't call set_unfiform_initializers if link failed, or it would trigger
a GL_INVALID_OPERATION error. That's not an expected behavior of
glLinkProgram function.

Signed-off-by: Yuanhan Liu <yuanhan.liu@linux.intel.com>
Reviewed-by: Paul Berry <stereotype441@gmail.com>
src/mesa/program/ir_to_mesa.cpp