mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-02-19 23:20:31 +01:00
r300g: fix use of uninitialised variables.
These buffers were getting dereferenced later.
This commit is contained in:
parent
9ee5b78e7f
commit
bdbabcd1e4
1 changed files with 2 additions and 2 deletions
|
|
@ -206,7 +206,7 @@ static boolean radeon_shared_handle_from_texture(struct drm_api *api,
|
|||
int retval, fd;
|
||||
struct drm_gem_flink flink;
|
||||
struct radeon_pipe_buffer* radeon_buffer;
|
||||
struct pipe_buffer *buffer;
|
||||
struct pipe_buffer *buffer = NULL;
|
||||
|
||||
if (!radeon_buffer_from_texture(api, texture, &buffer, stride)) {
|
||||
return FALSE;
|
||||
|
|
@ -239,7 +239,7 @@ static boolean radeon_local_handle_from_texture(struct drm_api *api,
|
|||
unsigned *stride,
|
||||
unsigned *handle)
|
||||
{
|
||||
struct pipe_buffer *buffer;
|
||||
struct pipe_buffer *buffer = NULL;
|
||||
if (!radeon_buffer_from_texture(api, texture, &buffer, stride)) {
|
||||
return FALSE;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue