Bug 779535 - readability followup. r=jgilbert
authorOleg Romashin <oleg.romashin@nokia.com>
Wed, 01 Aug 2012 15:13:49 -0700
changeset 101159 0333ef695e71b7071b43d31123adb5f2b4e116da
parent 101158 88798c5eafa90f99544649f33195482138a8e7a1
child 101160 975aa53578537cc01b50d8e3e31123668735d795
push id12871
push userromaxa@gmail.com
push dateWed, 01 Aug 2012 22:17:54 +0000
treeherdermozilla-inbound@0333ef695e71 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersjgilbert
bugs779535
milestone17.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 779535 - readability followup. r=jgilbert
content/canvas/src/WebGLContext.cpp
--- a/content/canvas/src/WebGLContext.cpp
+++ b/content/canvas/src/WebGLContext.cpp
@@ -69,22 +69,23 @@ NS_NewCanvasRenderingContextWebGL(nsIDOM
     if (!ctx)
         return NS_ERROR_OUT_OF_MEMORY;
 
     NS_ADDREF(*aResult = ctx);
     return NS_OK;
 }
 
 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()
     : gl(nullptr)
 {
     SetIsDOMBinding();
     mExtensions.SetLength(WebGLExtensionID_number_of_extensions);