-
Notifications
You must be signed in to change notification settings - Fork 206
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ImageGadget : Support 2-channel images
Although we never used them ourselves, the old TextureLoader-based code path prior to 8ea7d9f did support them, and it turns out they are in use in the wild. I've used `GL_LUMINANCE_ALPHA` because that is what was used by the old code path, but technically it is deprecated - in future we'd need to use `GL_RG` and `GL_TEXTURE_SWIZZLE_RGBA` instead. Also fixed an empty filename in the "Unsupported number of channels" error message - it seems the `ImageBuf` filename is lost during the `colorconvert()` call.
- Loading branch information
1 parent
48e53f3
commit 3038ce4
Showing
2 changed files
with
9 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters