mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-01 17:35:34 -04:00
fix problem in draw_tri
This commit is contained in:
parent
61a52a99ad
commit
49927b3e08
@ -3016,24 +3016,23 @@ draw_tri(GeomTri *geom, GeomContext *gc) {
|
||||
bool bUseTexCoordOnlyLoop = ((ColorBinding != G_PER_VERTEX) &&
|
||||
(NormalBinding == G_OFF) &&
|
||||
(TexCoordBinding != G_OFF));
|
||||
|
||||
bool bPerPrimNormal;
|
||||
bool bPerPrimColor=((_perPrim & PER_COLOR)!=0);
|
||||
bool bPerPrimNormal=false;
|
||||
|
||||
if(bUseTexCoordOnlyLoop) {
|
||||
_perVertex |= PER_TEXCOORD; // TexCoords are either G_OFF or G_PER_VERTEX
|
||||
} else {
|
||||
if(NormalBinding == G_PER_VERTEX)
|
||||
_perVertex |= PER_NORMAL;
|
||||
else if(NormalBinding == G_PER_PRIM)
|
||||
else if(NormalBinding == G_PER_PRIM) {
|
||||
_perPrim |= PER_NORMAL;
|
||||
|
||||
bPerPrimNormal=((_perPrim & PER_NORMAL)!=0);
|
||||
bPerPrimNormal=true;
|
||||
}
|
||||
|
||||
if(TexCoordBinding == G_PER_VERTEX)
|
||||
_perVertex |= PER_TEXCOORD;
|
||||
}
|
||||
|
||||
bool bPerPrimColor=(ColorBinding == G_PER_PRIM);
|
||||
if(bPerPrimColor)
|
||||
_perPrim |= PER_COLOR;
|
||||
else if(ColorBinding == G_PER_VERTEX)
|
||||
|
Loading…
x
Reference in New Issue
Block a user