textureRelease
Release this texture key. dvui will free its texture normally.
Only valid between Window.beginand Window.end.
Parameters
- key:Texture.Cache.Key
- Texture.Cache.Key
Source
Implementation
pub fn textureRelease(key: Texture.Cache.Key) void {
currentWindow().texture_cache.retain(currentWindow().gpa, key, null) catch |err| {
dvui.logError(@src(), err, "Could not retain texture with key {x}", .{key});
return;
};
}