Add bgra support to OS X target

This commit is contained in:
Magnus Norddahl 2016-06-01 08:54:39 +02:00
commit 4f635983fc
4 changed files with 28 additions and 10 deletions

View file

@ -129,6 +129,12 @@ void DCanvas::DrawTextureParms(FTexture *img, DrawParms &parms)
static short bottomclipper[MAXWIDTH], topclipper[MAXWIDTH];
const BYTE *translation = NULL;
if (r_swtruecolor != IsBgra())
{
r_swtruecolor = IsBgra();
R_InitColumnDrawers();
}
if (parms.masked)
{
spanptr = &spans;