r300/compiler: Fix segfault in error path

https://bugs.freedesktop.org/show_bug.cgi?id=30415

NOTE: This is a candidate for the 7.9 branch.
This commit is contained in:
Tom Stellard 2010-09-28 09:21:05 -07:00
parent 73dab75b41
commit d40ff5510c

View file

@ -250,7 +250,7 @@ static void emit_paired(struct r300_fragment_program_compiler *c, struct rc_pair
if (inst->RGB.OutputWriteMask || inst->Alpha.OutputWriteMask || inst->Alpha.DepthWriteMask) {
code->inst[ip].inst0 = R500_INST_TYPE_OUT;
if (inst->WriteALUResult) {
error("%s: cannot write output and ALU result at the same time");
error("Cannot write output and ALU result at the same time");
return;
}
} else {