virtualx-engine/drivers/gles_common
lawnjelly 5800615be7 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.

(cherry picked from commit 23fedc0d1a)
2022-09-09 14:28:58 +02:00
..
batch_diagnose.inc Style: clang-format: Disable KeepEmptyLinesAtTheStartOfBlocks 2021-05-04 14:45:16 +02:00
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-09 14:28:58 +02:00
rasterizer_storage_common.h Update copyright statements to 2022 2022-01-13 15:54:13 +01:00
SCsub