Browse Source

Minor clarification

rdb 16 years ago
parent
commit
b9f4cec283
1 changed files with 3 additions and 0 deletions
  1. 3 0
      panda/src/gobj/shader.cxx

+ 3 - 0
panda/src/gobj/shader.cxx

@@ -441,6 +441,9 @@ compile_parameter(const ShaderArgId  &arg_id,
   if (loc < string::npos) {
     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) == "__") {
     return true;
   }