Fix strict warning initializing texture result in compositor
From a strict language point of view the code required a braces around `trgba` initialization. But it is easier to rely on the fact that fields which are not specified are zero-initialized.
This commit is contained in:
parent
507a4deef1
commit
5312cf50a1
|
@ -102,7 +102,7 @@ void TextureBaseOperation::execute_pixel_sampled(float output[4],
|
|||
float y,
|
||||
PixelSampler sampler)
|
||||
{
|
||||
TexResult texres = {0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0, nullptr};
|
||||
TexResult texres = {0.0f};
|
||||
float texture_size[4];
|
||||
float texture_offset[4];
|
||||
float vec[3];
|
||||
|
|
Loading…
Reference in New Issue