fix crash

This commit is contained in:
David Rose 2005-06-02 15:25:06 +00:00
parent 8ddc7227ab
commit 9b23f1a89c

View File

@ -109,6 +109,7 @@ munge_format_impl(const qpGeomVertexFormat *orig,
// Now copy all of the texture coordinates in, in order by stage
// index. But we have to reuse previous columns.
if (_texture != (TextureAttrib *)NULL) {
typedef pset<const InternalName *> UsedStages;
UsedStages used_stages;
@ -132,6 +133,7 @@ munge_format_impl(const qpGeomVertexFormat *orig,
new_format->remove_column(name);
}
}
}
if (new_array_format->is_data_subset_of(*orig->get_array(0))) {
// If the new array format we have built is essentially the same