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:
Lioncash
2017-03-26 20:38:19 -04:00
parent 76cece8157
commit 62db55dee2
3 changed files with 8 additions and 7 deletions

View File

@ -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))
{