diff --git a/src/nostalgia/modules/core/src/studio/tilesheeteditor-imgui.cpp b/src/nostalgia/modules/core/src/studio/tilesheeteditor-imgui.cpp index f1db8baad..7dbcaf287 100644 --- a/src/nostalgia/modules/core/src/studio/tilesheeteditor-imgui.cpp +++ b/src/nostalgia/modules/core/src/studio/tilesheeteditor-imgui.cpp @@ -289,9 +289,11 @@ void TileSheetEditorImGui::drawTileSheet(const ox::Vec2 &fbSize) noexcept { glViewport(0, 0, fbSizei.width, fbSizei.height); m_tileSheetEditor.draw(); glBindFramebuffer(GL_FRAMEBUFFER, 0); - const uintptr_t buffId = m_framebuffer.color.id; + ImTextureID buffId{}; + static_assert(sizeof(ImTextureID) >= sizeof(m_framebuffer.color.id)); + memcpy(&buffId, &m_framebuffer.color.id, sizeof(m_framebuffer.color.id)); ImGui::Image( - reinterpret_cast(buffId), + buffId, static_cast(fbSize), ImVec2(0, 1), ImVec2(1, 0));