mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 779535 - readability followup. r=jgilbert
This commit is contained in:
parent
c53a74d983
commit
aee12c8242
@ -74,12 +74,13 @@ NS_NewCanvasRenderingContextWebGL(nsIDOMWebGLRenderingContext** aResult)
|
|||||||
}
|
}
|
||||||
|
|
||||||
WebGLContextOptions::WebGLContextOptions()
|
WebGLContextOptions::WebGLContextOptions()
|
||||||
: depth(true), stencil(false),
|
: alpha(true), depth(true), stencil(false),
|
||||||
premultipliedAlpha(true), antialias(true),
|
premultipliedAlpha(true), antialias(true),
|
||||||
preserveDrawingBuffer(false)
|
preserveDrawingBuffer(false)
|
||||||
{
|
{
|
||||||
// Set default alpha state based on preference.
|
// 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()
|
WebGLContext::WebGLContext()
|
||||||
|
Loading…
Reference in New Issue
Block a user