Skip to content

glDebugMessageCallback not working #128

Closed
@cone-forest

Description

@cone-forest

Hi there!

I've been implementing simple 2D graphics editor using OpenGL and encountered a problem when using glDebugMessageCallback.
On linux calling glDebugMessageCallback causes linker errors since GLAD lib is located both in ImmVision and HelloImGui.
On windows calling glDebugMessageCallback causes segfault since glDebugMessageCallback is nullptr.

It is called in PostInit callback.
Everything else OpenGL-related works fine, only the glDebugMessageCallback causes troubles.
Is there a convenient way of enabling it?

The code can be found here: https://github.com/2b1g1c/my-paint/blob/core/rnd/src/app/app.cpp

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