Nuklear icon indicating copy to clipboard operation
Nuklear copied to clipboard

Rawfb Wayland Demo Is Broken

Open uintmax opened this issue 8 months ago • 1 comments

Problem

I compiled the rawfb Wayland demo from the master branch without problems.

However, executing the demo binary results in this error message:

demo: ../../../nuklear.h:20668: nk_begin_titled: Assertion `ctx' failed.
Aborted (core dumped)

Fix

nk_wayland_ctx.rawfb, which contains ctx, never gets assigned a value.

Assigning the return value of the nk_rawfb_init function call to nk_wayland_ctx.rawfb like in the other rawfb demos fixes this issue.

uintmax avatar May 17 '25 08:05 uintmax

I opened a pull request for this issue: https://github.com/Immediate-Mode-UI/Nuklear/pull/807

uintmax avatar May 17 '25 08:05 uintmax

Thanks a lot.

RobLoach avatar Oct 25 '25 13:10 RobLoach