Attempt to fix a texture issue causing segfaults (issue #61).