yuq / mesa-lima

Deprecated, new place: https://gitlab.freedesktop.org/lima
https://github.com/yuq/mesa-lima/wiki
164 stars 17 forks source link

lima: fix crash in lima_set_constant_buffer #25

Closed anarsoul closed 6 years ago

anarsoul commented 6 years ago

If cb is NULL, lima_set_constant_buffer() will crash because debug_printf tries to dereference cb.

Fix it by not dereferencing cb is it's NULL.

Signed-off-by: Vasily Khoruzhick anarsoul@gmail.com