Bug 1261179 - Don't fallback to WGL. - r?jrmuizel draft
authorJeff Gilbert <jdashg@gmail.com>
Thu, 31 Mar 2016 13:47:11 -0700
changeset 348642 179b9d38a0f4c8c963da9963aa78e4180295e2c2
parent 345496 d5d53a3b4e50b94cdf85d20690526e5a00d5b63e
child 348643 d0ffa330d4fe1f92ab83732aa49372f5b9db12a3
push id14860
push userjgilbert@mozilla.com
push dateThu, 07 Apr 2016 20:12:06 +0000
reviewersjrmuizel
bugs1261179
milestone48.0a1
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
dom/canvas/WebGLContext.cpp
--- 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);