fix gl state commands for item-stack gui element rendering.

Closes #30