canvas.getContext("webgl") is undefined

Issue #12125200 • Assigned to Christian F.

Details

Author
Nolan L.
Created
May 25, 2017
Privacy
This issue is public.
Found in
  • Microsoft Edge
Found in build #
15.16199
Reports
Reported by 1 person

Sign in to watch or report this issue.

Steps to reproduce

  1. Go to https://nolanlawson.github.io/mountain-gl/
  2. Notice the demo works in Firefox/Chrome/Safari but shows nothing in Edge.

The error in console appears to be “Unable to get property ‘enable’ of undefined or null reference” caused by:

var canvas = document.querySelector("canvas");
canvas.width = canvas.offsetWidth;
canvas.height = canvas.offsetHeight;
var gl = canvas.getContext("webgl");
gl.enable(gl.DEPTH_TEST);

I’ve repro’d in Edge 16199.100 as well as 15063.2.

Attachments

0 attachments

    Comments and activity

    • Microsoft Edge Team

      Changed Assigned To to “James M.”

      Changed Assigned To to “Christian F.”

    You need to sign in to your Microsoft account to add a comment.

    Sign in