Turtle Dove
d424c48c1b
OpenGL2: Defer texture destruction until UnusedFrames > 0 ( #9475 )
...
The OpenGL2 backend was immediately destroying textures on
ImTextureStatus_WantDestroy without checking tex->UnusedFrames > 0,
unlike ALL other backends (OpenGL3, DX11, DX12, Metal, Vulkan, WebGPU)
which defer destruction until the texture is no longer in use by the GPU.
This could cause a use-after-free if the texture was still referenced by
in-flight draw commands when it was destroyed.
Fix: Add '&& tex->UnusedFrames > 0' to the WantDestroy check, matching
the pattern used by OpenGL3, DX11, Metal, Vulkan, and WebGPU.
2026-07-16 08:28:39 -05:00
..
2025-11-26 15:01:03 +01:00
2026-04-23 16:08:11 +02:00
2026-04-23 22:03:11 +02:00
2026-04-23 21:50:52 +02:00
2026-07-15 17:59:25 +02:00
2025-03-21 15:42:47 +01:00
2026-04-23 22:03:11 +02:00
2026-01-15 16:09:01 +01:00
2026-04-23 22:03:11 +02:00
2026-04-23 22:03:11 +02:00
2026-04-23 22:03:11 +02:00
2026-04-23 22:03:11 +02:00
2026-04-23 22:03:11 +02:00
2026-02-16 16:45:08 +01:00
2026-06-29 18:26:59 +02:00
2026-02-10 16:40:52 +01:00
2025-02-06 19:54:43 +01:00
2024-12-05 12:43:04 +01:00
2026-07-07 16:29:02 +02:00
2026-07-07 16:35:23 +02:00
2026-04-28 15:09:23 +02:00
2026-07-07 16:29:02 +02:00
2025-11-18 16:34:35 +01:00
2025-11-17 15:28:03 +01:00
2026-07-16 08:28:39 -05:00
Backends: DX9, DX10, DX11, DX12, Allegro5, OpenGL2, OpenGL3, SDLRenderer2, SDLRenderer3, SDLGPU3, Vulkan: added standard draw callbacks when possible. ( #9378 )
2026-04-23 21:50:45 +02:00
2025-12-11 18:28:23 +01:00
2026-07-15 18:20:05 +02:00
2026-06-17 15:02:51 +02:00
2025-06-27 13:35:03 +02:00
2026-01-08 14:31:25 +01:00
2026-07-15 17:59:25 +02:00
2026-02-13 16:01:08 +01:00
2026-06-29 18:26:59 +02:00
2026-02-13 16:01:08 +01:00
2025-11-26 15:01:03 +01:00
2026-04-23 22:03:11 +02:00
2026-04-23 21:50:47 +02:00
2026-04-23 22:03:11 +02:00
2026-04-23 21:50:52 +02:00
2026-07-15 13:44:03 +02:00
2026-04-23 15:58:44 +02:00
2026-06-17 12:53:36 +02:00
2026-06-17 12:53:36 +02:00
2026-05-11 15:38:27 +02:00
2026-04-23 21:50:52 +02:00
2026-05-19 17:53:36 +02:00
2026-01-20 18:25:18 +01:00