Skip to content

"Invalid DisplaySize value" assertion failed via glew and gl3w #79

@haxpor

Description

@haxpor

I tested with SDL2 (2.0.9 9bb50edccc46) on macOS 10.14 (18A391) and ported imgui_impl_opengl3.h, imgui_impl_opengl3.cpp, and main.cpp to C (checked calling to cimgui properly).

I faced with the problem of

Assertion failed: (g.IO.DisplaySize.x >= 0.0f && g.IO.DisplaySize.y >= 0.0f && "Invalid DisplaySize value"), function NewFrame, file imgui/imgui.cpp, line 3090.
Abort trap: 6

Download the project: cimgui-sdl2.tar.gz.

To build, simply ...

  • make to build against gl3w
  • make glew to build against glew

ps.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions