Skip to content

Commit 1c2d49f

Browse files
mvaligurskyMartin Valigursky
and
Martin Valigursky
committed
[Fix] Texture created by TextureAtlas respects its initial settings (#7300)
Co-authored-by: Martin Valigursky <mvaligursky@snapchat.com>
1 parent b0f9e75 commit 1c2d49f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/framework/handlers/texture-atlas.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -91,14 +91,14 @@ class TextureAtlasHandler extends ResourceHandler {
9191
}
9292

9393
// Create texture atlas resource using the texture from the texture loader
94-
open(url, data) {
94+
open(url, data, asset) {
9595
const resource = new TextureAtlas();
9696
if (data.texture && data.data) {
9797
resource.texture = data.texture;
9898
resource.__data = data.data; // store data temporarily to be copied into asset
9999
} else {
100100
const handler = this._loader.getHandler('texture');
101-
const texture = handler.open(url, data);
101+
const texture = handler.open(url, data, asset);
102102
if (!texture) return null;
103103
resource.texture = texture;
104104
}

0 commit comments

Comments
 (0)