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