Fix for relative texture paths.
Merge pull request #1014 from ey6es/master

Fix for relative texture paths.