mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-03-09 04:25:38 +00:00
Bug 779535 - readability followup. r=jgilbert
This commit is contained in:
parent
818b1aaff8
commit
328ae4d1e4
@ -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()
|
||||
|
Loading…
x
Reference in New Issue
Block a user