Bug 1279317 - Don't override the failureId with a more general one. r=jrmuizel

MozReview-Commit-ID: 8ErCqFlm89p

--HG--
extra : rebase_source : cc6739ce9a2f818b32b9eecff0bbc3b0c9c29011
This commit is contained in:
Benoit Girard 2016-06-09 15:20:49 -04:00
parent 75c05c0a0f
commit c3105e007d

View File

@ -597,7 +597,9 @@ CreateGLWithEGL(const gl::SurfaceCaps& caps, gl::CreateContextFlags flags,
out_failReason->AppendLiteral("\n");
}
out_failReason->AppendLiteral("Error during EGL OpenGL init.");
*out_failureId = "FEATURE_FAILURE_WEBGL_EGL_INIT";
if (out_failureId->IsEmpty()) {
*out_failureId = "FEATURE_FAILURE_WEBGL_EGL_INIT";
}
return nullptr;
}
@ -621,7 +623,9 @@ CreateGLWithANGLE(const gl::SurfaceCaps& caps, gl::CreateContextFlags flags,
out_failReason->AppendLiteral("\n");
}
out_failReason->AppendLiteral("Error during ANGLE OpenGL init.");
*out_failureId = "FEATURE_FAILURE_WEBGL_ANGLE_INIT";
if (out_failureId->IsEmpty()) {
*out_failureId = "FEATURE_FAILURE_WEBGL_ANGLE_INIT";
}
return nullptr;
}
@ -659,7 +663,9 @@ CreateGLWithDefault(const gl::SurfaceCaps& caps, gl::CreateContextFlags flags,
out_failReason->AppendASCII("\n");
}
out_failReason->AppendASCII("Error during native OpenGL init.");
*out_failureId = "FEATURE_FAILURE_WEBGL_DEFAULT_INIT";
if (out_failureId->IsEmpty()) {
*out_failureId = "FEATURE_FAILURE_WEBGL_DEFAULT_INIT";
}
return nullptr;
}