These are chat archives for pixijs/pixi.js

13th
Jan 2017
Eele
@eele94
Jan 13 2017 16:40

Hello Peeps,

Today I tried to deploy my application to surge:
It works on localhost but not on surge

code

// IMAGES
console.log('0')
this.load.image('grid', 'images/grid.png')
console.log('1')
this.load.image('logo', 'images/2.png')
console.log('2')
this.load.image('logo', 'images/3.png')
console.log('3')
this.load.image('logo', 'images/4.png')
console.log('4')
this.load.image('logo', 'images/5.png')
console.log('5')
this.load.image('logo', 'images/6.png')
console.log('6') 
this.load.image('logo', 'images/7.png')
console.log('7')
this.load.image('bullet', 'images/bullet.png')
console.log('8')
// AUDIO
this.load.audio('biem', 'audio/biem.ogg')

}

create () {
console.log('9')
this.state.start('Game')

}

logging

0
1
2
3
4
5
6
7
8
pixi.js:3944Uncaught TypeError: Failed to execute 'texImage2D' on 'WebGLRenderingContext': No function was found that matched the signature provided.
at i.WebGLRenderer.updateTexture (pixi.js:3944)
at i.WebGLSpriteBatch.renderBatch (pixi.js:5273)
at i.WebGLSpriteBatch.flush (pixi.js:5196)
at i.WebGLSpriteBatch.end (pixi.js:4843)
at i.WebGLRenderer.renderDisplayObject (pixi.js:3890)
at i.WebGLRenderer.render (pixi.js:3853)
at e.updateRender (phaser-split.js:13682)
at e.update (phaser-split.js:13603)
at s.RequestAnimationFrame.updateRAF (phaser-split.js:39274)
at window.requestAnimationFrame.forceSetTimeOut._onLoop (phaser-split.js:39257)
i.WebGLRenderer.updateTexture @ pixi.js:3944
i.WebGLSpriteBatch.renderBatch @ pixi.js:5273
i.WebGLSpriteBatch.flush @ pixi.js:5196
i.WebGLSpriteBatch.end @ pixi.js:4843
i.WebGLRenderer.renderDisplayObject @ pixi.js:3890
i.WebGLRenderer.render @ pixi.js:3853
updateRender @ phaser-split.js:13682
update @ phaser-split.js:13603
updateRAF @ phaser-split.js:39274
window.requestAnimationFrame.forceSetTimeOut._onLoop @ phaser-split.js:39257

9`