Sub pinkie crashes the pal drawer :(

This commit is contained in:
Magnus Norddahl 2016-11-21 15:40:42 +01:00
commit ddb0161f9c
2 changed files with 6 additions and 1 deletions

View file

@ -226,6 +226,9 @@ void RenderPolySprite::Render(const TriMatrix &worldToClip, AActor *thing, subse
uint32_t g = (args.uniforms.color >> 8) & 0xff;
uint32_t b = args.uniforms.color & 0xff;
args.uniforms.color = RGB32k.RGB[r >> 3][g >> 3][b >> 3];
if (blendmode == TriBlendMode::Sub) // Sub crashes in pal mode for some weird reason.
blendmode = TriBlendMode::Add;
}
PolyTriangleDrawer::draw(args, TriDrawVariant::DrawSubsector, blendmode);