Bug 1371190 - Part 5: Force enable alpha channel to prevent ANGLE from using incompatible backbuffer format. r=jgilbert

MozReview-Commit-ID: JtbKebUiroM
This commit is contained in:
Chih-Yi Leu
2017-09-06 10:50:14 +08:00
parent 5c846691a9
commit 764bc7e2e7

View File

@@ -763,8 +763,12 @@ WebGLContext::CreateAndInitGL(bool forceEnabled,
//////
if (tryANGLE)
return CreateAndInitGLWith(CreateGLWithANGLE, baseCaps, flags, out_failReasons);
if (tryANGLE) {
// Force enable alpha channel to make sure ANGLE use correct framebuffer formart
gl::SurfaceCaps& angleCaps = const_cast<gl::SurfaceCaps&>(baseCaps);
angleCaps.alpha = true;
return CreateAndInitGLWith(CreateGLWithANGLE, angleCaps, flags, out_failReasons);
}
//////