From 114578fc8ae4b33b5b1b695d84cf1f126ada4c0c Mon Sep 17 00:00:00 2001 From: Henri Verbeet Date: Tue, 13 Aug 2024 14:18:47 +0200 Subject: [PATCH] vkd3d-shader/fx: Replace assert() with VKD3D_ASSERT(). --- libs/vkd3d-shader/fx.c | 2 +- libs/vkd3d-shader/vkd3d_shader_private.h | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/libs/vkd3d-shader/fx.c b/libs/vkd3d-shader/fx.c index 473c82af..61374a81 100644 --- a/libs/vkd3d-shader/fx.c +++ b/libs/vkd3d-shader/fx.c @@ -111,7 +111,7 @@ static void get_state_block_function_components(const struct state_block_functio { unsigned int i; - assert(comp_count <= info->max_args); + VKD3D_ASSERT(comp_count <= info->max_args); if (info->min_args == info->max_args) { diff --git a/libs/vkd3d-shader/vkd3d_shader_private.h b/libs/vkd3d-shader/vkd3d_shader_private.h index 0ce423cc..8c2d2f95 100644 --- a/libs/vkd3d-shader/vkd3d_shader_private.h +++ b/libs/vkd3d-shader/vkd3d_shader_private.h @@ -51,7 +51,6 @@ #include "vkd3d_shader.h" #include "list.h" -#include #include #include #include