This is a slighly updated version of the patch. The code is the same but I changed the comment a little as suggested by Henri as the part about SM3 was wrong.
Roderick
Hi,
This is a second draw buffers / gl_FragColor patch and it depends on the other patch which was sent earlier today. The previous patch added draw buffers support and fixed a gl_FragData bug. This patch fixes another case where we incorrectly use gl_FragData.
Regards, Roderick Colenbrander