5800615be7
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
|
||
---|---|---|
.. | ||
SCsub | ||
batch_diagnose.inc | ||
rasterizer_array.h | ||
rasterizer_asserts.h | ||
rasterizer_canvas_batcher.h | ||
rasterizer_storage_common.h |