Changed column drawers to use true color textures
This commit is contained in:
parent
6512068005
commit
aae4571c95
11 changed files with 214 additions and 175 deletions
|
|
@ -197,7 +197,11 @@ static void BlastMaskedColumn (void (*blastfunc)(const BYTE *pixels, const FText
|
|||
|
||||
// draw the texture
|
||||
const FTexture::Span *spans;
|
||||
const BYTE *pixels = tex->GetColumn (maskedtexturecol[dc_x] >> FRACBITS, &spans);
|
||||
const BYTE *pixels;
|
||||
if (r_swtruecolor && !drawer_needs_pal_input)
|
||||
pixels = (const BYTE *)tex->GetColumnBgra(maskedtexturecol[dc_x] >> FRACBITS, &spans);
|
||||
else
|
||||
pixels = tex->GetColumn(maskedtexturecol[dc_x] >> FRACBITS, &spans);
|
||||
blastfunc (pixels, spans);
|
||||
rw_light += rw_lightstep;
|
||||
spryscale += rw_scalestep;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue