Skip to content

fix(ui): upload device hero images so they actually render - #20

Merged
AmitRajput-Dev merged 1 commit into
AmitRajput-Dev:mainfrom
ssuyash3000:fix/device-image-upload
Oct 28, 2026
Merged

AmitRajput-Dev merged 1 commit into
AmitRajput-Dev:mainfrom
ssuyash3000:fix/device-image-upload

Conversation

@ssuyash3000

Copy link
Copy Markdown
Contributor

_deviceTexture() pushed the freshly created ImTextureData straight into
ImGui::GetPlatformIO().Textures, but UpdateTexturesEndFrame() resizes that
list to 0 each frame and refills it from the font atlases plus the registered
user textures. The entry was therefore gone before the renderer backend could
honour ImTextureStatus_WantCreate, and the texture was never uploaded:

  • Release: the product image area is blank; every device falls back to nothing.
  • Debug: IM_ASSERT(tex_id != ImTextureID_Invalid && "ImDrawCmd is referring to ImTextureData that wasn't uploaded to graphics system...") fires.

ImGui::RegisterUserTexture() (imgui 1.92+) adds it to g.UserTextures, which
is what the per-frame rebuild reads from, so the upload request survives.

`_deviceTexture()` pushed the freshly created `ImTextureData` straight into
`ImGui::GetPlatformIO().Textures`, but `UpdateTexturesEndFrame()` resizes that
list to 0 each frame and refills it from the font atlases plus the registered
user textures. The entry was therefore gone before the renderer backend could
honour `ImTextureStatus_WantCreate`, and the texture was never uploaded:

- Release: the product image area is blank; every device falls back to nothing.
- Debug: `IM_ASSERT(tex_id != ImTextureID_Invalid && "ImDrawCmd is referring to
  ImTextureData that wasn't uploaded to graphics system...")` fires.

`ImGui::RegisterUserTexture()` (imgui 1.92+) adds it to `g.UserTextures`, which
is what the per-frame rebuild reads from, so the upload request survives.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
@AmitRajput-Dev

Copy link
Copy Markdown
Owner

Merged via #30, together with the rest of your Windows/Linux fixes (#18–#22). Thank you, clear write-ups and small focused diffs made these easy to review. CI is green on Windows and Ubuntu, and they'll be in the next Windows build.

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.

2 participants