mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-21 21:30:19 -06:00
Fifo: const correctness
PushFifoAuxBuffer only memcpys data using ptr as the source pointer, so it can be a pointer to const data because of that.
This commit is contained in:
@ -191,7 +191,7 @@ void SyncGPU(SyncGPUReason reason, bool may_move_read_ptr)
|
||||
}
|
||||
}
|
||||
|
||||
void PushFifoAuxBuffer(void* ptr, size_t size)
|
||||
void PushFifoAuxBuffer(const void* ptr, size_t size)
|
||||
{
|
||||
if (size > (size_t)(s_fifo_aux_data + FIFO_SIZE - s_fifo_aux_write_ptr))
|
||||
{
|
||||
|
Reference in New Issue
Block a user