added support for clip rendering in texture.h