зеркало из https://github.com/mozilla/gecko-dev.git
Merge m-c to inbound
This commit is contained in:
Коммит
56784148aa
|
@ -437,6 +437,11 @@ WebGLContext::SetContextOptions(JSContext* aCx, JS::Handle<JS::Value> aOptions)
|
||||||
// enforce that if stencil is specified, we also give back depth
|
// enforce that if stencil is specified, we also give back depth
|
||||||
newOpts.depth |= newOpts.stencil;
|
newOpts.depth |= newOpts.stencil;
|
||||||
|
|
||||||
|
// Don't do antialiasing if we've disabled MSAA.
|
||||||
|
if (!gfxPrefs::MSAALevel()) {
|
||||||
|
newOpts.antialias = false;
|
||||||
|
}
|
||||||
|
|
||||||
#if 0
|
#if 0
|
||||||
GenerateWarning("aaHint: %d stencil: %d depth: %d alpha: %d premult: %d preserve: %d\n",
|
GenerateWarning("aaHint: %d stencil: %d depth: %d alpha: %d premult: %d preserve: %d\n",
|
||||||
newOpts.antialias ? 1 : 0,
|
newOpts.antialias ? 1 : 0,
|
||||||
|
|
|
@ -3701,7 +3701,12 @@ pref("canvas.image.cache.limit", 0);
|
||||||
pref("image.onload.decode.limit", 0);
|
pref("image.onload.decode.limit", 0);
|
||||||
|
|
||||||
// WebGL prefs
|
// WebGL prefs
|
||||||
|
#ifdef ANDROID
|
||||||
|
// Disable MSAA on mobile.
|
||||||
|
pref("gl.msaa-level", 0);
|
||||||
|
#else
|
||||||
pref("gl.msaa-level", 2);
|
pref("gl.msaa-level", 2);
|
||||||
|
#endif
|
||||||
pref("webgl.force-enabled", false);
|
pref("webgl.force-enabled", false);
|
||||||
pref("webgl.disabled", false);
|
pref("webgl.disabled", false);
|
||||||
pref("webgl.shader_validator", true);
|
pref("webgl.shader_validator", true);
|
||||||
|
|
Загрузка…
Ссылка в новой задаче