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:
@@ -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);
|
||||
}
|
||||
|
||||
//////
|
||||
|
||||
|
||||
Reference in New Issue
Block a user