Those are really pointers - need those bits.
This commit is contained in:
@@ -208,7 +208,7 @@ void ImGuiDrawer::RenderDrawLists(ImDrawData* data) {
|
|||||||
draw.count = cmd.ElemCount;
|
draw.count = cmd.ElemCount;
|
||||||
draw.index_offset = index_offset;
|
draw.index_offset = index_offset;
|
||||||
draw.texture_handle =
|
draw.texture_handle =
|
||||||
reinterpret_cast<uintptr_t>(cmd.TextureId) & 0xFFFFFFFF;
|
reinterpret_cast<uintptr_t>(cmd.TextureId) & ~kIgnoreAlpha;
|
||||||
draw.alpha_blend =
|
draw.alpha_blend =
|
||||||
reinterpret_cast<uintptr_t>(cmd.TextureId) & kIgnoreAlpha ? false
|
reinterpret_cast<uintptr_t>(cmd.TextureId) & kIgnoreAlpha ? false
|
||||||
: true;
|
: true;
|
||||||
|
|||||||
@@ -35,7 +35,7 @@ class ImGuiDrawer : public WindowListener {
|
|||||||
|
|
||||||
ImGuiIO& GetIO();
|
ImGuiIO& GetIO();
|
||||||
|
|
||||||
static const uint64_t kIgnoreAlpha = (1ull << 32);
|
static const uint64_t kIgnoreAlpha = (1ull << 63);
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
void Initialize();
|
void Initialize();
|
||||||
|
|||||||
Reference in New Issue
Block a user