mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 975121 - Fix reversed colors with gfx.xrender.enabled = false. r=gal
This commit is contained in:
parent
594d4c7e5a
commit
acfcb2590b
@ -824,8 +824,15 @@ CompositorOGL::GetShaderConfigFor(Effect *aEffect, MaskType aMask) const
|
|||||||
config.SetYCbCr(true);
|
config.SetYCbCr(true);
|
||||||
break;
|
break;
|
||||||
case EFFECT_COMPONENT_ALPHA:
|
case EFFECT_COMPONENT_ALPHA:
|
||||||
|
{
|
||||||
config.SetComponentAlpha(true);
|
config.SetComponentAlpha(true);
|
||||||
|
EffectComponentAlpha* effectComponentAlpha =
|
||||||
|
static_cast<EffectComponentAlpha*>(aEffect);
|
||||||
|
gfx::SurfaceFormat format = effectComponentAlpha->mOnWhite->GetFormat();
|
||||||
|
config.SetRBSwap(format == gfx::SurfaceFormat::B8G8R8A8 ||
|
||||||
|
format == gfx::SurfaceFormat::B8G8R8X8);
|
||||||
break;
|
break;
|
||||||
|
}
|
||||||
case EFFECT_RENDER_TARGET:
|
case EFFECT_RENDER_TARGET:
|
||||||
config.SetTextureTarget(mFBOTextureTarget);
|
config.SetTextureTarget(mFBOTextureTarget);
|
||||||
break;
|
break;
|
||||||
|
Loading…
Reference in New Issue
Block a user