More work on textured triangle drawing routine