godot/drivers/gles_common
lawnjelly 23fedc0d1a Batching - fix uninitialized color read
Valgrind was showing a read from uninitialized memory. r_fill_state.curr_batch->color is unset (for performance reasons), so can contain random data.

This actually doesn't matter in practice, since logically this uninitialized state can only occur when change_batch is set, and the only side effect is that change_batch is set. Hence why no bugs occur in practice.

This PR prevents this read from uninitialized data. It is likely free in terms of performance after optimization, and keeps the Valgrind logs clearer, so why not.
2022-09-06 07:01:18 +01:00
..
SCsub
batch_diagnose.inc
rasterizer_array.h Update copyright statements to 2022 2022-01-13 15:54:13 +01:00
rasterizer_asserts.h Update copyright statements to 2022 2022-01-13 15:54:13 +01:00
rasterizer_canvas_batcher.h Batching - fix uninitialized color read 2022-09-06 07:01:18 +01:00
rasterizer_storage_common.h Update copyright statements to 2022 2022-01-13 15:54:13 +01:00