fixed handling of NATIVE flag

This commit is contained in:
aap
2017-08-21 23:15:31 +02:00
parent 0d8dc5d799
commit 8fc446f13b
10 changed files with 50 additions and 18 deletions

View File

@@ -19,6 +19,7 @@ PluginList Material::s_plglist = { sizeof(Material), sizeof(Material), nil, nil
SurfaceProperties defaultSurfaceProps = { 1.0f, 1.0f, 1.0f };
// TODO: allocate everything in one chunk
Geometry*
Geometry::create(int32 numVerts, int32 numTris, uint32 flags)
{
@@ -321,6 +322,7 @@ Geometry::hasColoredMaterial(void)
return 0;
}
// TODO: allocate as one chunk
void
Geometry::allocateData(void)
{
@@ -475,7 +477,7 @@ Geometry::correctTristripWinding(void)
{
MeshHeader *header = this->meshHeader;
if(header == nil || header->flags != MeshHeader::TRISTRIP ||
this->flags & NATIVE)
this->instData)
return;
MeshHeader *newhead = new MeshHeader;
newhead->flags = header->flags;