mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-23 23:30:22 +01:00
svga: Handle null buffers in svga_buffer_is_user_buffer().
This commit is contained in:
parent
2b301df4aa
commit
bd00fb2c06
1 changed files with 5 additions and 1 deletions
|
|
@ -200,7 +200,11 @@ svga_buffer(struct pipe_resource *buffer)
|
|||
static INLINE boolean
|
||||
svga_buffer_is_user_buffer( struct pipe_resource *buffer )
|
||||
{
|
||||
return svga_buffer(buffer)->user;
|
||||
if (buffer) {
|
||||
return svga_buffer(buffer)->user;
|
||||
} else {
|
||||
return FALSE;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue