mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-24 19:40:10 +01:00
rusticl/mesa: fix NULL pointer access in set_constant_buffer_stream
Fixes: b3133e250e ("gallium: add pipe_context::resource_release to eliminate buffer refcounting")
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/37311>
This commit is contained in:
parent
f419a96d76
commit
be7afedba9
1 changed files with 2 additions and 1 deletions
|
|
@ -490,7 +490,8 @@ impl PipeContext {
|
|||
idx,
|
||||
&cb,
|
||||
);
|
||||
self.pipe.as_ref().resource_release.unwrap()(self.pipe.as_ptr(), releasebuf);
|
||||
|
||||
pipe_resource_release(self.pipe.as_ptr(), releasebuf);
|
||||
|
||||
true
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue