Skip to content

Commit

Permalink
Merge pull request #24 from AnalyticalGraphicsInc/webgl2
Browse files Browse the repository at this point in the history
Added webgl2 context creation
  • Loading branch information
emackey committed Jan 9, 2015
2 parents 4319211 + fb63d57 commit 58a1514
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions webglreport.js
@@ -1,5 +1,5 @@
/**
Copyright (c) 2011-2013 Contributors.
Copyright 2011-2014 Analytical Graphics Inc. and Contributors
The MIT License
Expand Down Expand Up @@ -41,7 +41,7 @@ $(function() {

var canvas = $('<canvas />', { width: '1', height: '1' }).appendTo('body');
var gl;
var contextName = _.find(['webgl', 'experimental-webgl'], function(name) {
var contextName = _.find(['experimental-webgl2', 'webgl', 'experimental-webgl'], function(name) {
gl = canvas[0].getContext(name, { stencil: true });
return !!gl;
});
Expand Down

0 comments on commit 58a1514

Please sign in to comment.