mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-03 10:22:45 -04:00
Fix filename substitution in shader error reporting for first included file
This commit is contained in:
parent
f82c942d87
commit
541c684114
@ -865,7 +865,7 @@ get_filename_from_index(int index, ShaderType type) const {
|
|||||||
if (!fn.empty()) {
|
if (!fn.empty()) {
|
||||||
return fn;
|
return fn;
|
||||||
}
|
}
|
||||||
} else if (glsl_preprocess && index > 2048 &&
|
} else if (glsl_preprocess && index >= 2048 &&
|
||||||
(index - 2048) < (int)_included_files.size()) {
|
(index - 2048) < (int)_included_files.size()) {
|
||||||
return _included_files[index - 2048];
|
return _included_files[index - 2048];
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user