mirror of
https://github.com/id-Software/DOOM-3-BFG.git
synced 2025-03-14 22:50:45 +00:00
Update map buffer calls. Astyle
This commit is contained in:
parent
4af1742b17
commit
726c4524e9
2 changed files with 4 additions and 4 deletions
|
@ -223,7 +223,7 @@ void* idVertexBuffer::MapBuffer( bufferMapType_t mapType )
|
|||
accessMode = nvrhi::CpuAccessMode::Read;
|
||||
}
|
||||
|
||||
buffer = deviceManager->GetDevice()->mapBuffer( bufferHandle, accessMode );
|
||||
buffer = deviceManager->GetDevice()->mapBuffer( bufferHandle, accessMode, { ( uint64 )GetOffset(), ( uint64 )GetAllocedSize() } );
|
||||
|
||||
SetMapped();
|
||||
|
||||
|
@ -423,7 +423,7 @@ void* idIndexBuffer::MapBuffer( bufferMapType_t mapType )
|
|||
accessMode = nvrhi::CpuAccessMode::Read;
|
||||
}
|
||||
|
||||
buffer = deviceManager->GetDevice()->mapBuffer( bufferHandle, accessMode );
|
||||
buffer = deviceManager->GetDevice()->mapBuffer( bufferHandle, accessMode, { ( uint64 )GetOffset(), ( uint64 )GetAllocedSize() } );
|
||||
|
||||
SetMapped();
|
||||
|
||||
|
|
|
@ -76,10 +76,10 @@ public:
|
|||
NvrhiContext::operator=
|
||||
==================
|
||||
*/
|
||||
void NvrhiContext::operator=(NvrhiContext& other)
|
||||
void NvrhiContext::operator=( NvrhiContext& other )
|
||||
{
|
||||
currentImageParm = other.currentImageParm;
|
||||
for (int i = 0; i < imageParms.Num(); i++)
|
||||
for( int i = 0; i < imageParms.Num(); i++ )
|
||||
{
|
||||
imageParms[i] = other.imageParms[i];
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue