Texturing and GL fixes