Commit 4f9a3636 authored by Marc-André Lureau's avatar Marc-André Lureau Committed by Dave Airlie
Browse files

renderer: check create_shader() finished

Fix found thanks to american fuzzy lop.
Signed-off-by: default avatarMarc-André Lureau <>
parent 1e67b391
......@@ -2023,6 +2023,11 @@ static int vrend_shader_create(struct vrend_context *ctx,
struct vrend_shader_key key)
if (!shader->sel->tokens) {
report_context_error(ctx, VIRGL_ERROR_CTX_ILLEGAL_SHADER, 0);
return -1;
shader->id = glCreateShader(conv_shader_type(shader->sel->type));
shader->compiled_fs_id = 0;
shader->glsl_prog = vrend_convert_shader(&ctx->shader_cfg, shader->sel->tokens, &key, &shader->sel->sinfo);
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