mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-06 05:08:08 +02:00
radeong: Always return something for create_screen.
Prevents a segfault on e.g. r600.
This commit is contained in:
parent
361d73fcfc
commit
184cefcd8c
1 changed files with 3 additions and 0 deletions
|
|
@ -132,6 +132,9 @@ struct pipe_screen* radeon_create_screen(struct drm_api* api,
|
|||
if (is_r3xx(rwinsys->pci_id)) {
|
||||
radeon_setup_winsys(drmFB, rwinsys);
|
||||
return r300_create_screen(rwinsys);
|
||||
} else {
|
||||
FREE(rwinsys);
|
||||
return NULL;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue