Skip to content

Fix image handle.ptr and empty region - #141

Merged
RobLoach merged 2 commits into
masterfrom
fix/130-nk-command-image-empty-region
Jul 28, 2026
Merged

Fix image handle.ptr and empty region#141
RobLoach merged 2 commits into
masterfrom
fix/130-nk-command-image-empty-region

Conversation

@RobLoach

Copy link
Copy Markdown
Owner

Makes NK_COMMAND_IMAGE fall back to the full texture size when the image region is empty, and lets NuklearImageToTexture resolve nk_image_ptr handles as Texture pointers, so images built with upstream Nuklear constructors render correctly. Adds pixel-level test coverage. Fixes #130

@RobLoach RobLoach self-assigned this Jul 28, 2026
Comment thread include/raylib-nuklear.h Outdated
Comment thread test/raylib-nuklear-test.c Outdated
Co-authored-by: Rob Loach <robloach@gmail.com>
@RobLoach
RobLoach merged commit cf63c69 into master Jul 28, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

NK_COMMAND_IMAGE: empty region renders nothing, handle.ptr ignored

1 participant