diff --git a/content/canvas/src/WebGLContext.cpp b/content/canvas/src/WebGLContext.cpp index 589b8412f65..6cf90494f24 100644 --- a/content/canvas/src/WebGLContext.cpp +++ b/content/canvas/src/WebGLContext.cpp @@ -74,12 +74,13 @@ NS_NewCanvasRenderingContextWebGL(nsIDOMWebGLRenderingContext** aResult) } WebGLContextOptions::WebGLContextOptions() - : depth(true), stencil(false), + : alpha(true), depth(true), stencil(false), premultipliedAlpha(true), antialias(true), preserveDrawingBuffer(false) { // Set default alpha state based on preference. - alpha = Preferences::GetBool("webgl.default-no-alpha", false) ? 0 : 1; + if (Preferences::GetBool("webgl.default-no-alpha", false)) + alpha = false } WebGLContext::WebGLContext()