Bug 1565365 - Let webgl.force-enabled apply to WebGL2 as well r=jgilbert

Differential Revision: https://phabricator.services.mozilla.com/D37821

--HG--
extra : moz-landing-system : lando
This commit is contained in:
Jan Andre Ikenmeyer 2019-07-12 02:34:19 +00:00
Родитель be87d8ce17
Коммит a216f3dde7
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

@ -455,7 +455,7 @@ bool WebGLContext::CreateAndInitGL(
}
// WebGL2 is separately blocked:
if (IsWebGL2()) {
if (IsWebGL2() && !forceEnabled) {
const nsCOMPtr<nsIGfxInfo> gfxInfo = services::GetGfxInfo();
const auto feature = nsIGfxInfo::FEATURE_WEBGL2;