mirror of
https://github.com/nillerusr/source-engine.git
synced 2026-08-07 17:29:36 +00:00
WIP: fix some memaccess-class warnings
This commit is contained in:
@@ -30,7 +30,7 @@
|
||||
#include "materialsystem/deformations.h"
|
||||
#include "materialsystem/imaterialsystemhardwareconfig.h"
|
||||
#include "materialsystem/IColorCorrection.h"
|
||||
|
||||
#include "tier1/memhelpers.h"
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
// forward declarations
|
||||
@@ -1563,12 +1563,9 @@ public:
|
||||
|
||||
template< class E > inline E* IMatRenderContext::LockRenderDataTyped( int nCount, const E* pSrcData )
|
||||
{
|
||||
int nSizeInBytes = nCount * sizeof(E);
|
||||
E *pDstData = (E*)LockRenderData( nSizeInBytes );
|
||||
E *pDstData = (E*)LockRenderData( nCount*sizeof(E) );
|
||||
if ( pSrcData && pDstData )
|
||||
{
|
||||
memcpy( pDstData, pSrcData, nSizeInBytes );
|
||||
}
|
||||
memutils::copy( pDstData, pSrcData, nCount );
|
||||
return pDstData;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user