Fix filename substitution in shader error reporting for first included file

This commit is contained in:
rdb 2015-05-06 15:46:16 +02:00
parent f82c942d87
commit 541c684114

View File

@ -865,7 +865,7 @@ get_filename_from_index(int index, ShaderType type) const {
if (!fn.empty()) {
return fn;
}
} else if (glsl_preprocess && index > 2048 &&
} else if (glsl_preprocess && index >= 2048 &&
(index - 2048) < (int)_included_files.size()) {
return _included_files[index - 2048];
}