Bug 1261179 - Don't fallback to WGL. - r?jrmuizel
From fbea8ca4bfe4a54ca571b427a915495e810cb21c Mon Sep 17 00:00:00 2001
---
dom/canvas/WebGLContext.cpp | 3 +++
1 file changed, 3 insertions(+)
MozReview-Commit-ID: HcI0DRLi6zb
--- a/dom/canvas/WebGLContext.cpp
+++ b/dom/canvas/WebGLContext.cpp
@@ -690,16 +690,19 @@ WebGLContext::CreateAndInitGL(bool force
return true;
}
MOZ_ASSERT(!gl);
if (!disableANGLE) {
if (CreateAndInitGLWith(CreateGLWithANGLE, baseCaps, flags))
return true;
+
+ // Don't fallback to WGL.
+ return false;
}
MOZ_ASSERT(!gl);
if (CreateAndInitGLWith(CreateGLWithDefault, baseCaps, flags))
return true;
MOZ_ASSERT(!gl);