Fixed small bug in Game where AUTO didn't detect the lack of WebGL properly. Tidied up Math a bit more.

This commit is contained in:
Richard Davey
2013-08-30 20:05:29 +01:00
parent 54d98944e4
commit f9aa7f7339
5 changed files with 106 additions and 28 deletions
+1
View File
@@ -309,6 +309,7 @@ Phaser.Device.prototype = {
this.file = !!window['File'] && !!window['FileReader'] && !!window['FileList'] && !!window['Blob'];
this.fileSystem = !!window['requestFileSystem'];
this.webGL = ( function () { try { return !! window.WebGLRenderingContext && !! document.createElement( 'canvas' ).getContext( 'experimental-webgl' ); } catch( e ) { return false; } } )();
// this.webGL = !!window['WebGLRenderingContext'];
this.worker = !!window['Worker'];
if ('ontouchstart' in document.documentElement || window.navigator.msPointerEnabled) {