added suppor for per vertex tex coord rendering

This commit is contained in:
Paolo Cignoni 2010-04-08 16:52:23 +00:00
parent a184a620e4
commit 0f221f2d99
1 changed files with 6 additions and 0 deletions

View File

@ -540,6 +540,12 @@ void DrawFill()
}
}
if(tm==TMPerVert && !TMId.empty()) // in the case of per vertex tex coord we assume that we have a SINGLE texture.
{
curtexname = 0;
glEnable(GL_TEXTURE_2D);
glBindTexture(GL_TEXTURE_2D,TMId[curtexname]);
}
glBegin(GL_TRIANGLES);
while( (partial)?(fp!=face_pointers.end()):(fi!=m->face.end()))