Correct GLstate when rendering transparent objects.