Skip to content

Commit

Permalink
fix: read tga
Browse files Browse the repository at this point in the history
  • Loading branch information
jvenin committed Apr 20, 2024
1 parent 141eaf0 commit e6ac27e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/classes/texture.dart
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ class ModelTexture {
return null;
}
final bytes = await _textureFile!.readAsBytes();
if (_textureFile!.path.endsWith(".tag")) {
if (_textureFile!.path.endsWith(".tga")) {
imageData = img.decodeTga(bytes);
} else {
final completer = Completer<Image>();
Expand Down

0 comments on commit e6ac27e

Please sign in to comment.