Canvas and Stage added and starting to merge in Pixi deeply.

This commit is contained in:
Richard Davey
2013-08-29 17:20:59 +01:00
parent 16749edf20
commit 19483bafed
8 changed files with 372 additions and 18 deletions
+1 -1
View File
@@ -308,7 +308,7 @@ Phaser.Device.prototype = {
this.file = !!window['File'] && !!window['FileReader'] && !!window['FileList'] && !!window['Blob'];
this.fileSystem = !!window['requestFileSystem'];
this.webGL = !!window['WebGLRenderingContext'];
this.webGL = ( function () { try { return !! window.WebGLRenderingContext && !! document.createElement( 'canvas' ).getContext( 'experimental-webgl' ); } catch( e ) { return false; } } )();
this.worker = !!window['Worker'];
if ('ontouchstart' in document.documentElement || window.navigator.msPointerEnabled) {