Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add explicit cast to convert void* to ImTextureID to fix a Clang C++ compile time error. #1137

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion util/sokol_imgui.h
Original file line number Diff line number Diff line change
Expand Up @@ -2431,7 +2431,7 @@ SOKOL_API_IMPL void simgui_create_fonts_texture(const simgui_font_tex_desc_t* de
img_desc.image = _simgui.font_img;
img_desc.sampler = _simgui.font_smp;
_simgui.default_font = simgui_make_image(&img_desc);
io->Fonts->TexID = simgui_imtextureid(_simgui.default_font);
io->Fonts->TexID = (ImTextureID)simgui_imtextureid(_simgui.default_font);
}

SOKOL_API_IMPL void simgui_destroy_fonts_texture(void) {
Expand Down