mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-05 11:28:17 -04:00
Minor clarification
This commit is contained in:
parent
29b376c1e3
commit
b9f4cec283
@ -441,6 +441,9 @@ compile_parameter(const ShaderArgId &arg_id,
|
|||||||
if (loc < string::npos) {
|
if (loc < string::npos) {
|
||||||
basename = p._id._name.substr(loc + 1);
|
basename = p._id._name.substr(loc + 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Ignore inputs that are prefixed by two underscores
|
||||||
|
// This is to support geometry shaders correctly.
|
||||||
if (basename.size() >= 2 && basename.substr(0, 2) == "__") {
|
if (basename.size() >= 2 && basename.substr(0, 2) == "__") {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user