arthur/gl.html

7 lines
320 B
HTML
Raw Normal View History

<!doctype html><html><body><pre id=o>?</pre><script>
const c=document.createElement('canvas');
const g=c.getContext('webgl2')||c.getContext('webgl');
document.getElementById('o').textContent = g ? 'WEBGL OK '+g.getParameter(g.VERSION) : 'WEBGL UNAVAILABLE';
document.title = g ? 'GLOK' : 'GLNO';
</script></body></html>