mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-29 04:08:55 +00: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:
parent
76cece8157
commit
62db55dee2
3 changed files with 8 additions and 7 deletions
|
@ -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))
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue