浏览代码

Fix issue with attrib arrays in geometry shaders

rdb 16 年之前
父节点
当前提交
8edc0a3cd7
共有 1 个文件被更改,包括 3 次插入0 次删除
  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);
   }
+  if (basename.size() >= 2 && basename.substr(0, 2) == "__") {
+    return true;
+  }
 
   // Split it at the underscores.
   vector_string pieces;