Skip to content

MemoryUtils: Use "is*" type definitions#1569

Merged
gkjohnson merged 1 commit into
masterfrom
r170-fix
May 5, 2026
Merged

MemoryUtils: Use "is*" type definitions#1569
gkjohnson merged 1 commit into
masterfrom
r170-fix

Conversation

@gkjohnson
Copy link
Copy Markdown
Contributor

Related to #1560

Change from using instanceOf ExternalTexture to tex.isExternalTexture style of typing checking. This change makes the library resilient to three.js versions < 179 (where ExternalTexture was added) and allows CompressedTexture and ExternalTexture to be treeshaken if they are not used anywhere else.

cc @castano

@gkjohnson gkjohnson merged commit 8a5fbf0 into master May 5, 2026
1 check passed
@gkjohnson gkjohnson deleted the r170-fix branch May 5, 2026 07:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant