mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-27 12:00:22 +01:00
r300g: Abort if draw_create() fails
The other drivers need to be updated to do this, too.
This commit is contained in:
parent
d5bf231806
commit
7ed65f462a
1 changed files with 2 additions and 0 deletions
|
|
@ -441,6 +441,8 @@ struct pipe_context* r300_create_context(struct pipe_screen* screen,
|
|||
if (!r300screen->caps.has_tcl) {
|
||||
/* Create a Draw. This is used for SW TCL. */
|
||||
r300->draw = draw_create(&r300->context);
|
||||
if (r300->draw == NULL)
|
||||
goto fail;
|
||||
/* Enable our renderer. */
|
||||
draw_set_rasterize_stage(r300->draw, r300_draw_stage(r300));
|
||||
/* Disable converting points/lines to triangles. */
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue