Skip to content

Compile errors: reinterpret_cast<ImTextureID>(.....->ID) #129

@zhangfq-chemistry

Description

@zhangfq-chemistry

A lot of such a kind of error.s If I change reinterpret_cast(.....->ID) to (ImTextureID)(.....->ID), compile ok but run crashed with "Segmentation fault".

error: invalid cast from type ‘GLuint’ {aka ‘unsigned int’} to type ‘ImTextureID’ {aka ‘long long unsigned int’}
37 | ImGui::Image(reinterpret_cast(this->renderPassResult->ID), imageSize, ImVec2(0, 1),ImVec2(1, 0));

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions