mirror of
https://github.com/hyprwm/wlroots-hyprland.git
synced 2024-11-22 04:45:58 +01:00
render/vulkan: remove NULL renderer check on texture destroy
This commit is contained in:
parent
790fb93794
commit
0702eb9219
1 changed files with 0 additions and 5 deletions
|
@ -190,11 +190,6 @@ out:
|
|||
}
|
||||
|
||||
void vulkan_texture_destroy(struct wlr_vk_texture *texture) {
|
||||
if (!texture->renderer) {
|
||||
free(texture);
|
||||
return;
|
||||
}
|
||||
|
||||
// when we recorded a command to fill this image _this_ frame,
|
||||
// it has to be executed before the texture can be destroyed.
|
||||
// Add it to the renderer->destroy_textures list, destroying
|
||||
|
|
Loading…
Reference in a new issue