mirror of
https://github.com/Relintai/pandemonium_engine.git
synced 2024-12-19 02:16:51 +01:00
a39a25694d
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. |
||
---|---|---|
.. | ||
batch_diagnose.inc | ||
rasterizer_array.h | ||
rasterizer_asserts.h | ||
rasterizer_canvas_batcher.h | ||
rasterizer_storage_common.h | ||
SCsub |