mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-02-17 21:30:39 +01:00
r300g: fix crash while binding a NULL constant buffer
This commit is contained in:
parent
92855bcc95
commit
53228fe2a8
1 changed files with 1 additions and 1 deletions
|
|
@ -2056,7 +2056,7 @@ static void r300_set_constant_buffer(struct pipe_context *pipe,
|
|||
struct r300_constant_buffer *cbuf;
|
||||
uint32_t *mapped;
|
||||
|
||||
if (!cb)
|
||||
if (!cb || (!cb->buffer && !cb->user_buffer))
|
||||
return;
|
||||
|
||||
switch (shader) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue