avutil/vulkan_glslang: fix compiling failure issue

Signed-off-by: Wu Jianhua <jianhua.wu@intel.com>
pull/375/head
Wu Jianhua 3 years ago committed by Lynne
parent 999048b6b1
commit ff82bd5a00
  1. 4
      libavutil/vulkan_glslang.c

@ -219,10 +219,10 @@ static int glslc_shader_compile(FFVkSPIRVCompiler *ctx, void *avctx,
messages = glslang_program_SPIRV_get_messages(glslc_program);
if (messages) {
ff_vk_print_shader(s, shd, AV_LOG_WARNING);
ff_vk_print_shader(avctx, shd, AV_LOG_WARNING);
av_log(avctx, AV_LOG_WARNING, "%s\n", messages);
} else {
ff_vk_print_shader(s, shd, AV_LOG_VERBOSE);
ff_vk_print_shader(avctx, shd, AV_LOG_VERBOSE);
}
glslang_shader_delete(glslc_shader);

Loading…
Cancel
Save