diff --git a/LEGO1/tgl/d3drm/impl.h b/LEGO1/tgl/d3drm/impl.h index c655105e..03f6b979 100644 --- a/LEGO1/tgl/d3drm/impl.h +++ b/LEGO1/tgl/d3drm/impl.h @@ -273,7 +273,7 @@ class MeshImpl : public Mesh { // vtable+0x10 Result GetTexture(Texture*&) override; - Result SetTextureMappingMode(ProjectionType) override; + Result SetTextureMappingMode(TextureMappingMode) override; Result SetShadingModel(ShadingModel) override; Mesh* DeepClone(MeshBuilder*) override; diff --git a/LEGO1/tgl/d3drm/mesh.cpp b/LEGO1/tgl/d3drm/mesh.cpp index 6e4437d8..9c3f32b4 100644 --- a/LEGO1/tgl/d3drm/mesh.cpp +++ b/LEGO1/tgl/d3drm/mesh.cpp @@ -38,9 +38,9 @@ Result MeshImpl::SetTexture(const Texture* pTexture) } // FUNCTION: LEGO1 0x100a3f80 -Result MeshImpl::SetTextureMappingMode(ProjectionType projType) +Result MeshImpl::SetTextureMappingMode(TextureMappingMode mode) { - if (projType == Perspective) { + if (mode == PerspectiveCorrect) { return ResultVal(m_data->groupMesh->SetGroupMapping(m_data->groupIndex, D3DRMMAP_PERSPCORRECT)); } else { diff --git a/LEGO1/tgl/tgl.h b/LEGO1/tgl/tgl.h index 0ce2f863..e8e83771 100644 --- a/LEGO1/tgl/tgl.h +++ b/LEGO1/tgl/tgl.h @@ -276,7 +276,7 @@ class Mesh : public Object { virtual Result SetTexture(const Texture*) = 0; virtual Result GetTexture(Texture*&) = 0; - virtual Result SetTextureMappingMode(ProjectionType) = 0; + virtual Result SetTextureMappingMode(TextureMappingMode) = 0; virtual Result SetShadingModel(ShadingModel) = 0; // Clone data in underlying group