mirror of
https://github.com/RetroDECK/Supermodel.git
synced 2025-04-10 19:15:14 +00:00
remove pointless loop
This commit is contained in:
parent
ded3168060
commit
242cddac2d
|
@ -903,8 +903,6 @@ void CNew3D::CacheModel(Model *m, const UINT32 *data)
|
|||
|
||||
// copy face attributes
|
||||
|
||||
for (i = 0; i < p.number; i++) {
|
||||
|
||||
if ((ph.header[1] & 2) == 0) {
|
||||
UINT32 colorIdx = (ph.header[4] >> 8) & 0x7FF;
|
||||
p.faceColour[2] = (m_polyRAM[0x400 + colorIdx] & 0xFF) / 255.f;
|
||||
|
@ -930,7 +928,6 @@ void CNew3D::CacheModel(Model *m, const UINT32 *data)
|
|||
else {
|
||||
p.faceColour[3] = ph.Transparency() / 255.f;
|
||||
}
|
||||
}
|
||||
|
||||
// if we have flat shading, we can't re-use normals from shared vertices
|
||||
for (i = 0; i < p.number && !ph.SmoothShading(); i++) {
|
||||
|
|
Loading…
Reference in a new issue