23fedc0d1a
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. |
||
---|---|---|
.. | ||
alsa | ||
alsamidi | ||
coreaudio | ||
coremidi | ||
dummy | ||
gl_context | ||
gles2 | ||
gles3 | ||
gles_common | ||
png | ||
pulseaudio | ||
unix | ||
wasapi | ||
windows | ||
winmidi | ||
xaudio2 | ||
register_driver_types.cpp | ||
register_driver_types.h | ||
SCsub |