mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-25 04:20:08 +01:00
i915: check for NULL const buffer ptr
This commit is contained in:
parent
a254d0c368
commit
027433176c
1 changed files with 1 additions and 1 deletions
|
|
@ -516,7 +516,7 @@ static void i915_set_constant_buffer(struct pipe_context *pipe,
|
|||
* stays the same. In that case we should only be updating the first
|
||||
* N constants, leaving any extras from shader translation alone.
|
||||
*/
|
||||
{
|
||||
if (buf) {
|
||||
void *mapped;
|
||||
if (buf->size &&
|
||||
(mapped = ws->buffer_map(ws, buf->buffer,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue