Skip to content
This repository has been archived by the owner on Oct 24, 2022. It is now read-only.

Commit

Permalink
add comment
Browse files Browse the repository at this point in the history
  • Loading branch information
toxieainc committed Jul 5, 2022
1 parent b4eee08 commit dc9e557
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Texture.h
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ class BaseTexture
BYTE* data() { return m_data.data(); }
bool has_alpha() const { return m_format == RGBA || m_format == SRGBA; }

BaseTexture *ToBGRA();
BaseTexture *ToBGRA(); // swap R and B channels, also tonemaps floating point buffers during conversion and adds an opaque alpha channel (if format with missing alpha)

private:
unsigned int m_width, m_height;
Expand Down

0 comments on commit dc9e557

Please sign in to comment.