Fix a bunch of texture/vertex alpha issues

I expect this to take care of the alpha testing bugs, there were several mistakes.  This should be the right way to do #6002.  Fixes #5996.

-[Unknown]