did a little more work to more fully use the new texture states