[nostalgia/core/studio] Fix cast of 32 bit int to pointer

This commit is contained in:
Gary Talent 2022-07-10 15:48:14 -05:00
parent c80a8838a4
commit fdc57ce7b8

View File

@ -276,11 +276,12 @@ void TileSheetEditorImGui::drawTileSheet(const geo::Vec2 &fbSize) noexcept {
glViewport(0, 0, fbSizei.width, fbSizei.height);
m_tileSheetEditor.draw();
glBindFramebuffer(GL_FRAMEBUFFER, 0);
uintptr_t buffId = m_framebuffer.color.id;
ImGui::Image(
reinterpret_cast<void*>(m_framebuffer.color.id),
static_cast<ImVec2>(fbSize),
ImVec2(0, 1),
ImVec2(1, 0));
reinterpret_cast<void*>(buffId),
static_cast<ImVec2>(fbSize),
ImVec2(0, 1),
ImVec2(1, 0));
// handle input, this must come after drawing
const auto &io = ImGui::GetIO();
const auto mousePos = geo::Vec2(io.MousePos);