[nostalgia/core/studio] Fix cast of 32 bit int to pointer
This commit is contained in:
parent
c80a8838a4
commit
fdc57ce7b8
@ -276,11 +276,12 @@ 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));
|
||||||
// handle input, this must come after drawing
|
// handle input, this must come after drawing
|
||||||
const auto &io = ImGui::GetIO();
|
const auto &io = ImGui::GetIO();
|
||||||
const auto mousePos = geo::Vec2(io.MousePos);
|
const auto mousePos = geo::Vec2(io.MousePos);
|
||||||
|
Loading…
Reference in New Issue
Block a user