Small fixes

This commit is contained in:
rnentjes
2016-06-15 10:24:10 +02:00
parent 2ae3a9ad8f
commit ed120d66a0
3 changed files with 11 additions and 9 deletions

View File

@@ -33,7 +33,6 @@
this.webgl.attachShader(this.shaderProgram, this.fragment);
this.webgl.linkProgram(this.shaderProgram);
if (Kotlin.equals(this.webgl.getProgramParameter(this.shaderProgram, WebGLRenderingContext.LINK_STATUS), false)) {
Kotlin.println(this.webgl.getProgramInfoLog(this.shaderProgram));
throw new Kotlin.IllegalStateException('Unable to compile shader program!');
}
this.webgl.useProgram(this.shaderProgram);
@@ -44,7 +43,6 @@
info.location = this.webgl.getAttribLocation(this.shaderProgram, info.locationName);
info.offset = this.verticesBlockSize;
this.verticesBlockSize += info.numElements;
Kotlin.println('attrib: ' + info.locationName + ', info.location: ' + info.location + ', info.offset: ' + info.offset);
}
tmp$2 = this.drawType;
if (tmp$2 === WebGLRenderingContext.TRIANGLES)
@@ -52,8 +50,6 @@
else {
this.drawLength = this.verticesBlockSize;
}
Kotlin.println('verticesBlockSize ' + this.verticesBlockSize);
Kotlin.println('ShaderProgram constructor done');
}, /** @lends _.com.persesgames.shader.ShaderProgram.prototype */ {
compileShader: function (source, type) {
var tmp$0;