Skip to content

Commit

Permalink
nvg_imgui.cpp: fix metal cast issue (following imgui update)
Browse files Browse the repository at this point in the history
  • Loading branch information
pthom committed Oct 28, 2024
1 parent f0858c3 commit 6186d11
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion external/nanovg/nvg_imgui/nvg_imgui.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
#endif

#ifdef HAS_NVG_METAL
#include <stdint.h>
#include "nvg_mtl_hello_imgui.h"
#include "nanovg_mtl.h"
#endif
Expand Down Expand Up @@ -128,7 +129,7 @@ namespace NvgImgui
return;
fb = mnvgCreateFramebuffer(_parent->vg, _parent->Width, _parent->Height, _parent->NvgImageFlags);
IM_ASSERT(fb && "Failed to create NVGLU framebuffer");
_parent->TextureId = mnvgImageHandle(_parent->vg, fb->image);
_parent->TextureId = (ImTextureID)(intptr_t)mnvgImageHandle(_parent->vg, fb->image);
}

void ReleaseResource()
Expand Down

0 comments on commit 6186d11

Please sign in to comment.