Bug 1233557 - Allow RGB8 to be renderable again for web-compat. - r=jrmuizel

This commit is contained in:
Jeff Gilbert
2015-12-17 14:41:53 -08:00
parent 4f915ca5b0
commit 48d897debe

View File

@@ -542,9 +542,12 @@ FormatUsageAuthority::CreateForWebGL1(gl::GLContext* gl)
fnSet(EffectiveFormat::RGBA8 , true, true); fnSet(EffectiveFormat::RGBA8 , true, true);
fnSet(EffectiveFormat::RGBA4 , true, true); fnSet(EffectiveFormat::RGBA4 , true, true);
fnSet(EffectiveFormat::RGB5_A1, true, true); fnSet(EffectiveFormat::RGB5_A1, true, true);
fnSet(EffectiveFormat::RGB8 , false, true);
fnSet(EffectiveFormat::RGB565 , true, true); fnSet(EffectiveFormat::RGB565 , true, true);
// RGB8 is not guaranteed to be renderable, but we should allow it for web-compat.
// Min-capability mode should mark this as non-renderable.
fnSet(EffectiveFormat::RGB8, true, true);
fnSet(EffectiveFormat::Luminance8Alpha8, false, true); fnSet(EffectiveFormat::Luminance8Alpha8, false, true);
fnSet(EffectiveFormat::Luminance8 , false, true); fnSet(EffectiveFormat::Luminance8 , false, true);
fnSet(EffectiveFormat::Alpha8 , false, true); fnSet(EffectiveFormat::Alpha8 , false, true);