blitter: Abort if the blitter GL context can't be created

Closes: https://gitlab.freedesktop.org/virgl/virglrenderer/-/issues/125

Signed-off-by: Gert Wollny <gert.wollny@collabora.com>
Reviewed-by: Corentin Noël <corentin.noel@collabora.com>.
macos/master
Gert Wollny 3 years ago
parent 596a8c859d
commit b422b8b7b7
  1. 5
      src/vrend_blitter.c

@ -439,6 +439,11 @@ static void vrend_renderer_init_blit_ctx(struct vrend_blitter_ctx *blit_ctx)
break; break;
} }
if (!blit_ctx->gl_context) {
vrend_printf("virglrenderer: Unable to create blit context");
abort();
}
vrend_sync_make_current(blit_ctx->gl_context); vrend_sync_make_current(blit_ctx->gl_context);
glGenVertexArrays(1, &blit_ctx->vaoid); glGenVertexArrays(1, &blit_ctx->vaoid);
glGenFramebuffers(1, &blit_ctx->fb_id); glGenFramebuffers(1, &blit_ctx->fb_id);

Loading…
Cancel
Save