Those are really pointers - need those bits.

This commit is contained in:
Ben Vanik 2016-02-18 16:52:52 -08:00
parent 4c4a641096
commit 3bf1c91eaa
2 changed files with 2 additions and 2 deletions

View File

@ -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;

View File

@ -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();