mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-03 02:15:43 -04:00
fix problem in draw_tri
This commit is contained in:
parent
49927b3e08
commit
1f278496ea
@ -3398,16 +3398,15 @@ draw_multitri(Geom *geom, D3DPRIMITIVETYPE trilisttype) {
|
|||||||
_perComp = 0x0;
|
_perComp = 0x0;
|
||||||
|
|
||||||
bool bIsTriList=(trilisttype==D3DPT_TRIANGLESTRIP);
|
bool bIsTriList=(trilisttype==D3DPT_TRIANGLESTRIP);
|
||||||
bool bPerPrimColor=false;
|
bool bPerPrimColor=(ColorBinding == G_PER_PRIM);
|
||||||
bool bPerPrimNormal;
|
bool bPerPrimNormal;
|
||||||
bool bUseTexCoordOnlyLoop = (((ColorBinding == G_OVERALL) || (ColorBinding == G_PER_PRIM)) &&
|
bool bUseTexCoordOnlyLoop = (((ColorBinding == G_OVERALL) || bPerPrimColor) &&
|
||||||
(NormalBinding == G_OFF) &&
|
(NormalBinding == G_OFF) &&
|
||||||
(TexCoordBinding != G_OFF));
|
(TexCoordBinding != G_OFF));
|
||||||
|
|
||||||
if(bUseTexCoordOnlyLoop) {
|
if(bUseTexCoordOnlyLoop) {
|
||||||
if(ColorBinding == G_PER_PRIM) {
|
if(bPerPrimColor) {
|
||||||
_perPrim |= PER_COLOR;
|
_perPrim = PER_COLOR;
|
||||||
bPerPrimColor=true;
|
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
switch (NormalBinding) {
|
switch (NormalBinding) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user