Fixed a few issues with texture clipping