|
|
@@ -83,7 +83,9 @@ WebGLRenderer.prototype.resize = function(width, height) {
|
|
83
|
83
|
this.canvas.height = this.height;
|
|
84
|
84
|
|
|
85
|
85
|
this.gl.useProgram(this.program);
|
|
86
|
|
- this.gl.viewport(0, 0, this.width, this.height);
|
|
|
86
|
+
|
|
|
87
|
+ var codedWidth = ((this.width + 15) >> 4) << 4;
|
|
|
88
|
+ this.gl.viewport(0, 0, codedWidth, this.height);
|
|
87
|
89
|
};
|
|
88
|
90
|
|
|
89
|
91
|
WebGLRenderer.prototype.createTexture = function(index, name) {
|