Skip to content

KTX2 BGRA8 sampling is wrong #36

@dragonbane0

Description

@dragonbane0

Describe the bug
At least when viewing KTX2 B8G8R8A8 textures, the tool still seems to treat the B channel as R and R as B causing the colors to be inverted.

To Reproduce
Steps to reproduce the behavior:

  1. Open B8G8R8A8 KTX2 texture and find the colors are wrong. Unsure if other formats or DDS is affected too

Expected behavior
For the BGRA format to be correctly sampled.

Desktop:

  • OS: Windows 11
  • Version 3.8

Additional context
Thumbnail generator is also affected and needs the same fix.


Excellent work on the tool, compatibility is very high otherwise

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions