Small fixes
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user