Skip to content

Commit c6c2070

Browse files
authored
fix(native): TextureLoader should remain consistent with FileLoader (#2986)
1 parent 934d6e2 commit c6c2070

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

packages/fiber/src/native/polyfills.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,8 @@ export function polyfills() {
3434
// There's no Image in native, so create a data texture instead
3535
const prevTextureLoad = THREE.TextureLoader.prototype.load
3636
THREE.TextureLoader.prototype.load = function load(url, onLoad, onProgress, onError) {
37+
if (this.path) url = this.path + url
38+
3739
const texture = new THREE.Texture()
3840

3941
// @ts-ignore

0 commit comments

Comments
 (0)