Bugfix. Textures now drawn correctly.