Bug 1297965 - Use ANGLE for WebGL2. r=jgilbert, a=ritu
☠☠ backed out by 2c332306c030 ☠ ☠
authorMorris Tseng <mtseng@mozilla.com>
Wed, 14 Sep 2016 01:06:00 -0400
changeset 350264 8b451fd2b9685450033fc34753c4506b9023541f
parent 350263 0e5cc34aa8b4c95c790527617e07bd31f76696a5
child 350265 6cd515dc692d2fa44f4043d0ea30cb3f4ee2a422
push id1230
push userjlund@mozilla.com
push dateMon, 31 Oct 2016 18:13:35 +0000
treeherdermozilla-release@5e06e3766db2 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersjgilbert, ritu
bugs1297965
milestone50.0a2
Bug 1297965 - Use ANGLE for WebGL2. r=jgilbert, a=ritu MozReview-Commit-ID: A4oEZjToo3i
dom/canvas/WebGLContext.cpp
--- a/dom/canvas/WebGLContext.cpp
+++ b/dom/canvas/WebGLContext.cpp
@@ -721,21 +721,18 @@ WebGLContext::CreateAndInitGL(bool force
         flags |= gl::CreateContextFlags::REQUIRE_COMPAT_PROFILE;
     }
 
     //////
 
     const bool useEGL = PR_GetEnv("MOZ_WEBGL_FORCE_EGL");
 
 #ifdef XP_WIN
-    if (!IsWebGL2()) {
-        // Use only ANGLE on Windows for WebGL 1.
-        tryNativeGL = false;
-        tryANGLE = true;
-    }
+    tryNativeGL = false;
+    tryANGLE = true;
 
     if (gfxPrefs::WebGLDisableWGL()) {
         tryNativeGL = false;
     }
 
     if (gfxPrefs::WebGLDisableANGLE() || PR_GetEnv("MOZ_WEBGL_FORCE_OPENGL") || useEGL) {
         tryNativeGL = true;
         tryANGLE = false;