Commit d27ed954 authored by Niklas Haas's avatar Niklas Haas

spirv: assert the existence of bytes

Just in case..

also includes a cosmetic change
parent 88acf5e9
......@@ -149,6 +149,7 @@ static bool shaderc_compile(struct spirv_compiler *spirv, void *tactx,
if (success) {
void *bytes = (void *) shaderc_result_get_bytes(res);
pl_assert(bytes);
out_spirv->len = shaderc_result_get_length(res);
out_spirv->start = talloc_memdup(tactx, bytes, out_spirv->len);
}
......
......@@ -66,7 +66,6 @@ static void pl_texture_tests(const struct pl_gpu *gpu)
}
}
static void pl_shader_tests(const struct pl_gpu *gpu)
{
if (gpu->glsl.version < 410)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment