mirror of
https://github.com/ocornut/imgui.git
synced 2026-11-16 19:11:13 +00:00
Check the font build in ImGui_ImplWin32_NewFrame #3487
Labels
No labels
accidentally closed
android
backends
bug
building
clipper
coloredit
color spaces
cplusplus
data types
demo
disabled
doc
docking
dpi
drag drop
drawing/drawlist
dropped
dx12
enhancement
focus
font/text
gallery
help wanted
idle/power saving
ime
in progress
inputs
inputtext
internals
label/id and id stack
language bindings
layout
linux/bsd
menus
multi-contexts
multi-threading
multi-viewports
nav
news/info
opengl
optimization
osx/ios
overlap
plot/graph
popups
question
scrolling
selection
settings
sliders/drags
style
tables/columns
tabs
test wanted
tools
tooltips
tree
tricks & tips
useful widgets
vulkan
web
window pos/depth
window sizing
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
ocornut/imgui#3487
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
ImGui_ImplWin32_NewFrame will check if the font is built. If the Renderer releases the resource (ClearTexData) after creating the font resource, this check will fail. But it has no effect. Does this mean that this check is wrong?
Hello @actboy168,
Sorry for my very late answer to this.
You are very right, the assert was incorrectly formulated, preventing the use of
ClearTexData().I fixed it now.
We don't expect
ClearTexData()to be used by many people but still.Note that work on #3761 when enabled will probably require user to keep CPU copy in memory.
We'll keep allow manual warming / baking of ranges + discarding of CPU/RAM data, can be useful for low-specs platforms.