summaryrefslogtreecommitdiffstats
path: root/o3d/samples/o3d-webgl/pack.js
diff options
context:
space:
mode:
Diffstat (limited to 'o3d/samples/o3d-webgl/pack.js')
-rw-r--r--o3d/samples/o3d-webgl/pack.js9
1 files changed, 3 insertions, 6 deletions
diff --git a/o3d/samples/o3d-webgl/pack.js b/o3d/samples/o3d-webgl/pack.js
index 4a72feb..58abf20 100644
--- a/o3d/samples/o3d-webgl/pack.js
+++ b/o3d/samples/o3d-webgl/pack.js
@@ -211,17 +211,14 @@ o3d.Pack.prototype.createTexture2D =
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_);
this.gl.texParameteri(this.gl.TEXTURE_2D,
- 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.TEXTURE_MAG_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;
};