fix: use correct RGB shifts on big endian#1830
fix: use correct RGB shifts on big endian#1830zeldin wants to merge 1 commit intohoffstadt:masterfrom
Conversation
|
https://github.com/ocornut/imgui/blob/467a1cd4a583edd55db310c82e2823692616e108/imgui.h#L2326-L2327 |
|
@Pcothren Do you mean setting the shifts in |
|
Any changes in imgui.h would be overwritten when we pull in the newer version of imgui.h |
|
Well, wouldn't the correct way to deal with that be to upstream the bugfix to whereever you are pulling new versions from? |
name: Pull Request
about: Create a pull request to help us improve
title: ''
assignees: ''
Description:
This fixes incorrect colors in DearPyGui when running on big-endian systems. Since e.g. GL_RGBA means that R is in the "first" bits, this means the least significant bits on little-endian and the most significant bits on big-endian, so the shifts need to be different.
Tested on ppc64 (big endian) and aarch64 (little endian).
Concerning Areas: