Skip to content

Commit

Permalink
DataTextureLoader: fix promise never rejected on error (#26412)
Browse files Browse the repository at this point in the history
  • Loading branch information
ashconnell committed Jul 18, 2023
1 parent 83e47f4 commit 7b8a8e7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/loaders/DataTextureLoader.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ class DataTextureLoader extends Loader {

const texData = scope.parse( buffer );

if ( ! texData ) return;
if ( ! texData ) return onError();

if ( texData.image !== undefined ) {

Expand Down

0 comments on commit 7b8a8e7

Please sign in to comment.