Pārlūkot izejas kodu

Fix issue with attrib arrays in geometry shaders

rdb 16 gadi atpakaļ
vecāks
revīzija
8edc0a3cd7
1 mainītis faili ar 3 papildinājumiem un 0 dzēšanām
  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;