Hello !
When I am running my game on Chromebook there is a black screen and this error is showing up:
[quote:26hy7zke]Cannot set property 'hasCurrentMatMV' of null c2runtime.js:49
It is located on this function:
GLBatchJob.prototype.doUpdateModelView = function ()
{
var i, len, s, shaderPrograms = this.glwrap.shaderPrograms, currentProgram = this.glwrap.currentProgram;
for (i = 0, len = shaderPrograms.length; i < len; i++)
{
s = shaderPrograms[i];
if (i === currentProgram && s.locMatMV)
{
s.updateMatMV(this.mat4param);
s.hasCurrentMatMV = true;
}
else
s.hasCurrentMatMV = false;
}
mat4.set(this.mat4param, this.glwrap.currentMV);
};[/code:26hy7zke]
I believe that the shaderlist contains nullpointers so it can't set its own variables. I also suspect that a specific shader may be the cause. Now is there a way to prevent this from happening like blocking the shader instead of running it ?
Thanks in advance,
Nemega