up/down fix.  should probably merge this.

also need to separate out and merge the fix for GL_BLEND