Skip to content

Commit

Permalink
Merge pull request #33 from cx20/master
Browse files Browse the repository at this point in the history
Added renderer name of Microsoft Edge.
  • Loading branch information
pjcozzi committed Aug 27, 2016
2 parents dad6de2 + cf20f43 commit d2045df
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion webglreport.js
Expand Up @@ -134,9 +134,10 @@ $(function() {
function getAngle(gl) {
var lineWidthRange = describeRange(gl.getParameter(gl.ALIASED_LINE_WIDTH_RANGE));

// Heuristic: ANGLE is only on Windows, not in IE, and does not implement line width greater than one.
// Heuristic: ANGLE is only on Windows, not in IE, and not in Edge, and does not implement line width greater than one.
var angle = ((navigator.platform === 'Win32') || (navigator.platform === 'Win64')) &&
(gl.getParameter(gl.RENDERER) !== 'Internet Explorer') &&
(gl.getParameter(gl.RENDERER) !== 'Microsoft Edge') &&
(lineWidthRange === describeRange([1,1]));

if (angle) {
Expand Down

0 comments on commit d2045df

Please sign in to comment.