]> git.mxchange.org Git - simgear.git/commit
#658: avoid crash when Textures.high is missing
authorThorstenB <brehmt@gmail.com>
Sat, 11 Feb 2012 08:54:53 +0000 (09:54 +0100)
committerThorstenB <brehmt@gmail.com>
Sat, 11 Feb 2012 09:00:03 +0000 (10:00 +0100)
commit2a0e9d31e10b3a9643f982516259be82a6154134
tree2e2d4b1d7129c8e2ba23779e9dc54739017781bb
parentc473cd7213bc778c242c5827b0f2d2c13e42a7ad
#658: avoid crash when Textures.high is missing
Don't resolve the empty file name, which would result in the fgdata
directory path (instead of a path to a file). Eventually this resulted in
a segfault, partly due to a bug in "osgDB::readImageFile", which reports
"success" when given a directory (instead of a file) path, though it
doesn't return a valid image object.
simgear/scene/material/TextureBuilder.cxx