Skip to content

Commit

Permalink
fix changed texture sizes
Browse files Browse the repository at this point in the history
  • Loading branch information
ivanpopelyshev committed Mar 5, 2020
1 parent bea3dcb commit 9c8229b
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion dist/pixi-tilemap.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/pixi-tilemap.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "pixi-tilemap",
"version": "2.0.4",
"version": "2.0.6",
"description": "Pixi-tilemap provides tilemap shaders and tilemap renderer for pixi.js (v3 and v4). Used in rpgmaker MV.",
"author": "Ivan Popelyshev",
"contributors": [
Expand Down
2 changes: 1 addition & 1 deletion src/RectTileLayer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,6 @@ namespace pixi_tilemap {
renderer.globalUniforms.uniforms.projectionMatrix.copyTo(this._globalMat).append(this.worldTransform);
shader.uniforms.shadowColor = this.shadowColor;
shader.uniforms.animationFrame = plugin.tileAnim;
renderer.shader.bind(shader, false);
this.renderWebGLCore(renderer, plugin);
}

Expand All @@ -187,6 +186,7 @@ namespace pixi_tilemap {
if (textures.length === 0) return;

plugin.bindTextures(renderer, shader, textures);
renderer.shader.bind(shader, false);

//lost context! recover!
let vb = this.vb;
Expand Down

0 comments on commit 9c8229b

Please sign in to comment.