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
Родитель 91432f79e5
Коммит 9001d85bea
1 изменённых файлов: 8 добавлений и 5 удалений

Просмотреть файл

@ -539,11 +539,14 @@ FormatUsageAuthority::CreateForWebGL1(gl::GLContext* gl)
// RGBA8 is made renderable in WebGL 1.0, "Framebuffer Object Attachments"
// render filter
// able able
fnSet(EffectiveFormat::RGBA8 , true , true);
fnSet(EffectiveFormat::RGBA4 , true , true);
fnSet(EffectiveFormat::RGB5_A1, true , true);
fnSet(EffectiveFormat::RGB8 , false, true);
fnSet(EffectiveFormat::RGB565 , true , true);
fnSet(EffectiveFormat::RGBA8 , true, true);
fnSet(EffectiveFormat::RGBA4 , true, true);
fnSet(EffectiveFormat::RGB5_A1, 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::Luminance8 , false, true);