Fix segfault if vrend_shader_select() failed on GS

Signed-off-by: Dave Airlie <airlied@gmail.com>
macos/master
Marc-André Lureau 10 years ago committed by Dave Airlie
parent 9e5bd0dbf0
commit 5f3f9459d6
  1. 2
      src/vrend_renderer.c

@ -2094,7 +2094,7 @@ void vrend_draw_vbo(struct vrend_context *ctx,
if (ctx->sub->gs)
vrend_shader_select(ctx, ctx->sub->gs, &gs_dirty);
if (!ctx->sub->vs->current || !ctx->sub->fs->current) {
if (!ctx->sub->vs->current || !ctx->sub->fs->current || (ctx->sub->gs && !ctx->sub->gs->current)) {
fprintf(stderr, "failure to compile shader variants\n");
return;
}

Loading…
Cancel
Save