From 8edc0a3cd762006dbec10d5633f0fe222d0d921c Mon Sep 17 00:00:00 2001 From: rdb Date: Sun, 9 Aug 2009 11:08:38 +0000 Subject: [PATCH] Fix issue with attrib arrays in geometry shaders --- panda/src/gobj/shader.cxx | 3 +++ 1 file changed, 3 insertions(+) diff --git a/panda/src/gobj/shader.cxx b/panda/src/gobj/shader.cxx index 742302e635..f0de5280f1 100755 --- a/panda/src/gobj/shader.cxx +++ b/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;