mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-02 09:52:27 -04:00
fix draw_tri color bug
This commit is contained in:
parent
1e96ebed2c
commit
5c4f508c42
@ -1907,15 +1907,6 @@ draw_prim_setup(const Geom *geom) {
|
||||
_perComp &= ~PER_COLOR;
|
||||
} else if(ColorBinding == G_OVERALL){
|
||||
GET_NEXT_COLOR();
|
||||
|
||||
/*
|
||||
Colorf tempcolor = geom->get_next_color(ci);
|
||||
if(!_color_transform_required) {
|
||||
_curD3Dcolor = Colorf_to_D3DCOLOR(tempcolor);
|
||||
} else {
|
||||
transform_color(tempcolor,_curD3Dcolor);
|
||||
}
|
||||
*/
|
||||
_perVertex &= ~PER_COLOR;
|
||||
_perPrim &= ~PER_COLOR;
|
||||
_perComp &= ~PER_COLOR;
|
||||
@ -2898,7 +2889,7 @@ draw_tri(GeomTri *geom, GeomContext *gc) {
|
||||
_perVertex |= PER_TEXCOORD;
|
||||
}
|
||||
|
||||
bool bPerPrimColor=((_perPrim & PER_COLOR)!=0);
|
||||
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