Corrected indexing for non textured faces.
This commit is contained in:
parent
afdaa7e3db
commit
5261480fc7
|
@ -24,6 +24,9 @@
|
||||||
History
|
History
|
||||||
|
|
||||||
$Log: not supported by cvs2svn $
|
$Log: not supported by cvs2svn $
|
||||||
|
Revision 1.23 2007/01/18 01:26:23 cignoni
|
||||||
|
Added cast for mac compiling
|
||||||
|
|
||||||
Revision 1.22 2006/12/12 11:06:58 cignoni
|
Revision 1.22 2006/12/12 11:06:58 cignoni
|
||||||
Slightly changed the colormaterial mode for the flatwire
|
Slightly changed the colormaterial mode for the flatwire
|
||||||
|
|
||||||
|
@ -397,8 +400,7 @@ void DrawFill()
|
||||||
//
|
//
|
||||||
|
|
||||||
if(tm == TMPerWedge || tm == TMPerWedgeMulti ) {
|
if(tm == TMPerWedge || tm == TMPerWedgeMulti ) {
|
||||||
glEnable(GL_TEXTURE_2D);
|
glDisable(GL_TEXTURE_2D);
|
||||||
glBindTexture(GL_TEXTURE_2D,TMId[0]);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if(h&HNUseVArray)
|
if(h&HNUseVArray)
|
||||||
|
@ -487,7 +489,15 @@ void DrawFill()
|
||||||
{
|
{
|
||||||
curtexname=(*fi).WT(0).n();
|
curtexname=(*fi).WT(0).n();
|
||||||
glEnd();
|
glEnd();
|
||||||
|
if (curtexname >= 0)
|
||||||
|
{
|
||||||
|
glEnable(GL_TEXTURE_2D);
|
||||||
glBindTexture(GL_TEXTURE_2D,TMId[curtexname]);
|
glBindTexture(GL_TEXTURE_2D,TMId[curtexname]);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
glDisable(GL_TEXTURE_2D);
|
||||||
|
}
|
||||||
glBegin(GL_TRIANGLES);
|
glBegin(GL_TRIANGLES);
|
||||||
}
|
}
|
||||||
if(nm == NMPerFace) glNormal(f.cN());
|
if(nm == NMPerFace) glNormal(f.cN());
|
||||||
|
|
Loading…
Reference in New Issue