mirror of
https://github.com/isledecomp/isle.git
synced 2026-01-28 18:51:16 +00:00
Fix
This commit is contained in:
parent
89f042f9b7
commit
5bb9658cac
@ -373,7 +373,7 @@ class UnkImpl : public Unk {
|
|||||||
|
|
||||||
private:
|
private:
|
||||||
inline Result CreateMeshImpl(
|
inline Result CreateMeshImpl(
|
||||||
MeshImpl* mesh,
|
MeshImpl* pMeshImpl,
|
||||||
unsigned long faceCount,
|
unsigned long faceCount,
|
||||||
unsigned long vertexCount,
|
unsigned long vertexCount,
|
||||||
float (*pPositions)[3],
|
float (*pPositions)[3],
|
||||||
|
|||||||
@ -23,9 +23,9 @@ Mesh* UnkImpl::CreateMesh(
|
|||||||
ShadingModel shadingModel
|
ShadingModel shadingModel
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
MeshImpl* mesh = new MeshImpl();
|
MeshImpl* pMeshImpl = new MeshImpl;
|
||||||
if (CreateMeshImpl(
|
if (CreateMeshImpl(
|
||||||
mesh,
|
pMeshImpl,
|
||||||
faceCount,
|
faceCount,
|
||||||
vertexCount,
|
vertexCount,
|
||||||
pPositions,
|
pPositions,
|
||||||
@ -35,11 +35,11 @@ Mesh* UnkImpl::CreateMesh(
|
|||||||
pTextureIndices,
|
pTextureIndices,
|
||||||
shadingModel
|
shadingModel
|
||||||
) == Error) {
|
) == Error) {
|
||||||
delete mesh;
|
delete pMeshImpl;
|
||||||
mesh = NULL;
|
pMeshImpl = NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
return mesh;
|
return pMeshImpl;
|
||||||
}
|
}
|
||||||
|
|
||||||
inline Result MeshSetTextureMappingMode(MeshImpl::MeshData* pMesh, TextureMappingMode mode)
|
inline Result MeshSetTextureMappingMode(MeshImpl::MeshData* pMesh, TextureMappingMode mode)
|
||||||
@ -133,7 +133,7 @@ inline Result CreateMesh(
|
|||||||
}
|
}
|
||||||
|
|
||||||
inline Result UnkImpl::CreateMeshImpl(
|
inline Result UnkImpl::CreateMeshImpl(
|
||||||
MeshImpl* mesh,
|
MeshImpl* pMeshImpl,
|
||||||
unsigned long faceCount,
|
unsigned long faceCount,
|
||||||
unsigned long vertexCount,
|
unsigned long vertexCount,
|
||||||
float (*pPositions)[3],
|
float (*pPositions)[3],
|
||||||
@ -154,7 +154,7 @@ inline Result UnkImpl::CreateMeshImpl(
|
|||||||
pFaceIndices,
|
pFaceIndices,
|
||||||
pTextureIndices,
|
pTextureIndices,
|
||||||
shadingModel,
|
shadingModel,
|
||||||
mesh->ImplementationData()
|
pMeshImpl->ImplementationData()
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user