mirror of
https://github.com/whoahq/whoa.git
synced 2026-02-02 08:42:45 +03:00
style(gx): use auto specifier to store BufLock return value
This commit is contained in:
parent
bc293c4b2d
commit
8e44449afc
@ -397,8 +397,8 @@ int32_t CGxDeviceD3d::BufUnlock(CGxBuf* buf, uint32_t size) {
|
||||
void CGxDeviceD3d::BufData(CGxBuf* buf, void* data, size_t size, uintptr_t offset) {
|
||||
CGxDevice::BufData(buf, data, size, offset);
|
||||
|
||||
char* bufData = this->IBufLock(buf);
|
||||
memcpy(reinterpret_cast<void*>(uintptr_t(bufData) + offset), data, size);
|
||||
auto bufData = this->IBufLock(buf);
|
||||
memcpy(reinterpret_cast<void*>(uintptr_t(bufData) + offset)), data, size);
|
||||
this->IBufUnlock(buf);
|
||||
}
|
||||
|
||||
|
||||
@ -120,7 +120,7 @@ int32_t CGxDeviceGLL::BufUnlock(CGxBuf* buf, uint32_t size) {
|
||||
void CGxDeviceGLL::BufData(CGxBuf* buf, void* data, size_t size, uintptr_t offset) {
|
||||
CGxDevice::BufData(buf, data, size, offset);
|
||||
|
||||
char* bufData = this->IBufLock(buf);
|
||||
auto bufData = this->IBufLock(buf);
|
||||
memcpy(reinterpret_cast<void*>(uintptr_t(bufData) + offset), data, size);
|
||||
this->IBufUnlock(buf);
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user