st/mesa: Remove NULL check of pointer that could not be NULL.
cbuf has been dereferenced twice earlier in the same if-block. It is either not NULL or a crash has already occurred.
This commit is contained in:
@@ -84,10 +84,9 @@ void st_upload_constants( struct st_context *st,
|
||||
}
|
||||
|
||||
/* load Mesa constants into the constant buffer */
|
||||
if (cbuf)
|
||||
st_no_flush_pipe_buffer_write(st, *cbuf,
|
||||
0, paramBytes,
|
||||
params->ParameterValues);
|
||||
st_no_flush_pipe_buffer_write(st, *cbuf,
|
||||
0, paramBytes,
|
||||
params->ParameterValues);
|
||||
|
||||
st->pipe->set_constant_buffer(st->pipe, shader_type, 0, *cbuf);
|
||||
}
|
||||
|
Reference in New Issue
Block a user