mirror of
https://gitlab.winehq.org/wine/vkd3d.git
synced 2024-11-21 16:46:41 -08:00
vkd3d-shader: Do not check for NULL in vkd3d_shader_free_shader_code().
Signed-off-by: Zebediah Figura <zfigura@codeweavers.com> Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
6c10b52804
commit
f895f0dce6
@ -917,9 +917,6 @@ void vkd3d_shader_free_scan_descriptor_info(struct vkd3d_shader_scan_descriptor_
|
|||||||
|
|
||||||
void vkd3d_shader_free_shader_code(struct vkd3d_shader_code *shader_code)
|
void vkd3d_shader_free_shader_code(struct vkd3d_shader_code *shader_code)
|
||||||
{
|
{
|
||||||
if (!shader_code)
|
|
||||||
return;
|
|
||||||
|
|
||||||
vkd3d_free((void *)shader_code->code);
|
vkd3d_free((void *)shader_code->code);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user