Bug 671185 - Incorrect return of NS_ERROR_* codes in functions returning PRBool, r=mak,ehsan,taras,biesi,pike,khuey,dholbert,josh,bjacob,bsmith

This commit is contained in:
Michael Wu
2011-07-25 21:57:58 -07:00
parent e212de0804
commit 8d598fd0bb
14 changed files with 47 additions and 32 deletions

View File

@@ -599,7 +599,7 @@ WebGLContext::InitAndValidateGL()
}
// Check the shader validator pref
NS_ENSURE_TRUE(Preferences::GetRootBranch(), NS_ERROR_FAILURE);
NS_ENSURE_TRUE(Preferences::GetRootBranch(), PR_FALSE);
mShaderValidation =
Preferences::GetBool("webgl.shader_validator", mShaderValidation);