mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-07 17:20:21 +01:00
mesa: silence uninitialized var warning in get_tex_rgba_uncompressed()
Reviewed-by: Matt Turner <mattst88@gmail.com>
This commit is contained in:
parent
bb77745681
commit
4d2cee4d5e
1 changed files with 1 additions and 2 deletions
|
|
@ -450,7 +450,7 @@ get_tex_rgba_uncompressed(struct gl_context *ctx, GLuint dimensions,
|
|||
if (transferOps) {
|
||||
uint32_t rgba_format;
|
||||
int rgba_stride;
|
||||
bool need_convert;
|
||||
bool need_convert = false;
|
||||
|
||||
/* We will convert to RGBA float */
|
||||
rgba_format = RGBA32_FLOAT;
|
||||
|
|
@ -462,7 +462,6 @@ get_tex_rgba_uncompressed(struct gl_context *ctx, GLuint dimensions,
|
|||
* buffer.
|
||||
*/
|
||||
if (format == rgba_format) {
|
||||
need_convert = false;
|
||||
rgba = dest;
|
||||
} else if (rgba == NULL) { /* Allocate the RGBA buffer only once */
|
||||
need_convert = true;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue