Fix crash with varying global vector types when emitting header file.
This commit is contained in:
@@ -1121,6 +1121,12 @@ lEmitVectorTypedefs(const std::vector<const VectorType *> &types, FILE *file) {
|
||||
for (unsigned int i = 0; i < types.size(); ++i) {
|
||||
std::string baseDecl;
|
||||
const VectorType *vt = types[i]->GetAsNonConstType();
|
||||
if (!vt->IsUniformType())
|
||||
// Varying stuff shouldn't be visibile to / used by the
|
||||
// application, so at least make it not simple to access it by
|
||||
// not declaring the type here...
|
||||
continue;
|
||||
|
||||
int size = vt->GetElementCount();
|
||||
|
||||
baseDecl = vt->GetBaseType()->GetCDeclaration("");
|
||||
|
||||
Reference in New Issue
Block a user