Z-Sort fix: was sorting transparents front to back, when it had to be back to front.
And wasn't detecting transparencies all that well either. Oops.
Authored by: klaussfreire 2010-09-10
Parent: [r12899]
Child: [r12901]