Bug 779535 - readability followup. r=jgilbert

This commit is contained in:
Oleg Romashin 2012-08-01 15:13:49 -07:00
parent c53a74d983
commit aee12c8242

View File

@ -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()