565cfc888e
Valgrind reported two instances of reading uninitialized memory in the batching. They are both pretty benign (as evidenced by no bug reports) but wise to close these. The first is that when changing batch from a default batch it reads the batch color which is not set (as it is not relevant for default batches). The segment of code is not necessary when it has already deemed a batch change necessary (which will occur from a default batch). In addition this means that the count of color changes will be more accurate, rather than having a possible random value in. The second is that on initialization _set_texture_rect_mode is called before the state has been properly initialized (it is initialized at the beginning of each canvas_begin, but this occurs outside of that). |
||
---|---|---|
.. | ||
SCsub | ||
batch_diagnose.inc | ||
rasterizer_array.h | ||
rasterizer_asserts.h | ||
rasterizer_canvas_batcher.h | ||
rasterizer_storage_common.h |