[nostalgia/core/studio] Cleanup reinterpret_cast
This commit is contained in:
parent
3a149fad6d
commit
56f2533754
@ -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<void*>(buffId),
|
||||
buffId,
|
||||
static_cast<ImVec2>(fbSize),
|
||||
ImVec2(0, 1),
|
||||
ImVec2(1, 0));
|
||||
|
Loading…
Reference in New Issue
Block a user