GPU: Fix compilation warning about uninitialized values

This commit is contained in:
Clément Foucault 2020-05-28 13:41:33 +02:00
parent c7a7dc743d
commit 59b730b643
1 changed files with 1 additions and 0 deletions

View File

@ -1671,6 +1671,7 @@ void GPU_texture_clear(GPUTexture *tex, eGPUDataFormat gpu_data_format, const vo
}
default:
BLI_assert(!"Unhandled data format");
r = g = b = a = 0.0f;
break;
}
glClearColor(r, g, b, a);