Add memchecks to replaced functions.
Call gpu->UpdateMemory() from memcpy() funcs.
Merge pull request #6134 from unknownbrackets/replace-funcs

Trigger memchecks in replaced funcs, call gpu->UpdateMemory()