fix for x86 red blue swap

fix for x86 linux and mac color swap between red and blue