Chromium Code Reviews| Index: samples/o3d-webgl/pack.js |
| =================================================================== |
| --- samples/o3d-webgl/pack.js (revision 45777) |
| +++ samples/o3d-webgl/pack.js (working copy) |
| @@ -211,17 +211,14 @@ |
| this.gl.bindTexture(this.gl.TEXTURE_2D, texture.texture_); |
| this.gl.texImage2D(this.gl.TEXTURE_2D, 0, this.gl.RGBA, width, height, |
| 0, this.gl.RGBA, this.gl.UNSIGNED_BYTE, null); |
| + texture.setupRepeatModes_(width, height); |
| } |
| this.gl.bindTexture(this.gl.TEXTURE_2D, texture.texture_); |
|
petersont
2010/04/28 22:24:17
I will fix this differently in a cl I'm working on
|
| this.gl.texParameteri(this.gl.TEXTURE_2D, |
| - this.gl.TEXTURE_MAG_FILTER, this.gl.LINEAR); |
| + this.gl.TEXTURE_MAG_FILTER, this.gl.LINEAR); |
| this.gl.texParameteri(this.gl.TEXTURE_2D, |
| - this.gl.TEXTURE_MIN_FILTER, this.gl.LINEAR); |
| - this.gl.texParameteri(this.gl.TEXTURE_2D, |
| - this.gl.TEXTURE_WRAP_S, this.gl.CLAMP_TO_EDGE); |
| - this.gl.texParameteri(this.gl.TEXTURE_2D, |
| - this.gl.TEXTURE_WRAP_T, this.gl.CLAMP_TO_EDGE); |
| + this.gl.TEXTURE_MIN_FILTER, this.gl.LINEAR); |
| return texture; |
| }; |