Skip to content

Commit

Permalink
Fix texture orientation
Browse files Browse the repository at this point in the history
  • Loading branch information
xchellx committed Dec 23, 2024
1 parent 598dbad commit 5235826
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/txtrtool.c
Original file line number Diff line number Diff line change
Expand Up @@ -716,7 +716,7 @@ static TTStatus_t decode(TTDecodeOptions_t *opts, char *input, char *output) {
size_t mipsCount;
TXTRDecodeOptions_t texOpts = {
.flipX = false,
.flipY = true,
.flipY = TXTR_IsIndexed(txtr.hdr.format),
.decAllMips = opts->mipmaps
};
TXTRDecodeError_t tde = TXTR_Decode(&txtr, mips, &mipsCount, &texOpts);
Expand Down Expand Up @@ -818,7 +818,7 @@ static TTStatus_t encode(TTEncodeOptions_t *opts, char *input, char *output) {
TXTRRawMipmap_t txtrMips[11];
TXTREncodeOptions_t texOpts = {
.flipX = false,
.flipY = false,
.flipY = !TXTR_IsIndexed(opts->texFmtDec),
.mipLimit = opts->mipLimit,
.widthLimit = opts->widthLimit,
.heightLimit = opts->heightLimit,
Expand Down

0 comments on commit 5235826

Please sign in to comment.