[add] ReleasePatch
This commit is contained in:
@@ -280,9 +280,10 @@ HRESULT CMesh::Ready_VertexBuffer_For_NonAnim(SaveMesh* SaveMesh, _fmatrix PreTr
|
||||
|
||||
m_pVertexPositions = new _float3[m_iNumVertices];
|
||||
ZeroMemory(m_pVertexPositions, sizeof(_float3) * m_iNumVertices);
|
||||
|
||||
#ifdef _DEBUG
|
||||
m_VertexTexcoords = new _float2[m_iNumVertices];
|
||||
ZeroMemory(m_VertexTexcoords, sizeof(_float2) * m_iNumVertices);
|
||||
#endif // _DEBUG
|
||||
|
||||
for (_uint i = 0; i < m_iNumVertices; ++i)
|
||||
{
|
||||
@@ -302,9 +303,11 @@ HRESULT CMesh::Ready_VertexBuffer_For_NonAnim(SaveMesh* SaveMesh, _fmatrix PreTr
|
||||
memcpy(&pVertices[i].vBinormal, &SaveMesh->Vertices[i].BiNoraml, sizeof(_float3));
|
||||
XMStoreFloat3(&pVertices[i].vBinormal,
|
||||
XMVector3Normalize(XMVector3TransformNormal(XMLoadFloat3(&pVertices[i].vBinormal), PreTransformMatrix)));
|
||||
|
||||
#ifdef _DEBUG
|
||||
pVertices[i].vTexcoord = SaveMesh->Vertices[i].UV;
|
||||
memcpy(&m_VertexTexcoords[i], &pVertices[i].vTexcoord, sizeof(_float2));
|
||||
#endif // _DEBUG
|
||||
|
||||
}
|
||||
|
||||
D3D11_SUBRESOURCE_DATA InitialVBData{};
|
||||
|
||||
Reference in New Issue
Block a user