mirror of
https://github.com/ocornut/imgui.git
synced 2026-01-14 00:34:18 +00:00
Textures: Fixed support for #define ImTextureID_Invalid to non-zero value.
This commit is contained in:
parent
0fe5166531
commit
bc051dcf91
2 changed files with 4 additions and 1 deletions
|
|
@ -43,6 +43,9 @@ Breaking changes:
|
||||||
|
|
||||||
Other changes:
|
Other changes:
|
||||||
|
|
||||||
|
- Textures: Fixed support for `#define ImTextureID_Invalid` to non-zero value:
|
||||||
|
ImTextureData() was incorrectly cleared with zeroes. (#8745) [@rachit7645]
|
||||||
|
- Demo: Added "Text -> Font Size" demo section. (#8738) [@Demonese]
|
||||||
- Backends: SDL3: avoid calling SDL_StartTextInput() again if already active.
|
- Backends: SDL3: avoid calling SDL_StartTextInput() again if already active.
|
||||||
(#8727) [@morrazzzz]
|
(#8727) [@morrazzzz]
|
||||||
- Backends: OSX: added ImGuiMouseCursor_Wait and ImGuiMouseCursor_Progress
|
- Backends: OSX: added ImGuiMouseCursor_Wait and ImGuiMouseCursor_Progress
|
||||||
|
|
|
||||||
2
imgui.h
2
imgui.h
|
|
@ -3440,7 +3440,7 @@ struct ImTextureData
|
||||||
bool WantDestroyNextFrame; // rw - // [Internal] Queued to set ImTextureStatus_WantDestroy next frame. May still be used in the current frame.
|
bool WantDestroyNextFrame; // rw - // [Internal] Queued to set ImTextureStatus_WantDestroy next frame. May still be used in the current frame.
|
||||||
|
|
||||||
// Functions
|
// Functions
|
||||||
ImTextureData() { memset(this, 0, sizeof(*this)); }
|
ImTextureData() { memset(this, 0, sizeof(*this)); TexID = ImTextureID_Invalid; }
|
||||||
~ImTextureData() { DestroyPixels(); }
|
~ImTextureData() { DestroyPixels(); }
|
||||||
IMGUI_API void Create(ImTextureFormat format, int w, int h);
|
IMGUI_API void Create(ImTextureFormat format, int w, int h);
|
||||||
IMGUI_API void DestroyPixels();
|
IMGUI_API void DestroyPixels();
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue