Remove unused OGL c_tmap_scanline_per
scanline.cpp defined two implementations, one in a `#if 1` and the other in an else. Keep the enabled one. Delete the other.
This commit is contained in:
parent
aa6ca60a03
commit
5e563ca3c0
|
@ -602,51 +602,6 @@ static void c_tmap_scanline_per()
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
#else
|
||||
void c_tmap_scanline_per()
|
||||
{
|
||||
uint8_t *dest;
|
||||
uint c;
|
||||
fix u,v,z,l,dudx, dvdx, dzdx, dldx;
|
||||
|
||||
u = fx_u;
|
||||
v = fx_v*64;
|
||||
z = fx_z;
|
||||
dudx = fx_du_dx;
|
||||
dvdx = fx_dv_dx*64;
|
||||
dzdx = fx_dz_dx;
|
||||
|
||||
l = fx_l>>8;
|
||||
dldx = fx_dl_dx/256;
|
||||
dest = reinterpret_cast<uint8_t *>(write_buffer + fx_xleft + (bytes_per_row * fx_y) );
|
||||
|
||||
if (!Transparency_on) {
|
||||
for (int x= fx_xright-fx_xleft+1 ; x > 0; --x ) {
|
||||
//edited 05/18/99 Matt Mueller - changed from 0xff00 to 0x7f00 to fix glitches
|
||||
*dest++ = gr_fade_table[ (l&(0x7f00)) + static_cast<uint32_t>(pixptr[ ( (v/z)&(64*63) ) + ((u/z)&63) ]) ];
|
||||
//end edit -MM
|
||||
l += dldx;
|
||||
u += dudx;
|
||||
v += dvdx;
|
||||
z += dzdx;
|
||||
}
|
||||
} else {
|
||||
for (int x= fx_xright-fx_xleft+1 ; x > 0; --x ) {
|
||||
c = static_cast<uint32_t>(pixptr[ ( (v/z)&(64*63) ) + ((u/z)&63) ]);
|
||||
if ( c!=255)
|
||||
//edited 05/18/99 Matt Mueller - changed from 0xff00 to 0x7f00 to fix glitches
|
||||
*dest = gr_fade_table[ (l&(0x7f00)) + c ];
|
||||
//end edit -MM
|
||||
dest++;
|
||||
l += dldx;
|
||||
u += dudx;
|
||||
v += dvdx;
|
||||
z += dzdx;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
static void c_tmap_scanline_quad()
|
||||
|
|
Loading…
Reference in a new issue