Skip to content

Commit

Permalink
fix(native): TextureLoader should remain consistent with FileLoader (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
l3utterfly committed Sep 4, 2023
1 parent 934d6e2 commit c6c2070
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/fiber/src/native/polyfills.ts
Expand Up @@ -34,6 +34,8 @@ export function polyfills() {
// There's no Image in native, so create a data texture instead
const prevTextureLoad = THREE.TextureLoader.prototype.load
THREE.TextureLoader.prototype.load = function load(url, onLoad, onProgress, onError) {
if (this.path) url = this.path + url

const texture = new THREE.Texture()

// @ts-ignore
Expand Down

0 comments on commit c6c2070

Please sign in to comment.