[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,8 +276,9 @@ void TileSheetEditorImGui::drawTileSheet(const geo::Vec2 &fbSize) noexcept {
glViewport(0, 0, fbSizei.width, fbSizei.height); glViewport(0, 0, fbSizei.width, fbSizei.height);
m_tileSheetEditor.draw(); m_tileSheetEditor.draw();
glBindFramebuffer(GL_FRAMEBUFFER, 0); glBindFramebuffer(GL_FRAMEBUFFER, 0);
uintptr_t buffId = m_framebuffer.color.id;
ImGui::Image( ImGui::Image(
reinterpret_cast<void*>(m_framebuffer.color.id), reinterpret_cast<void*>(buffId),
static_cast<ImVec2>(fbSize), static_cast<ImVec2>(fbSize),
ImVec2(0, 1), ImVec2(0, 1),
ImVec2(1, 0)); ImVec2(1, 0));