Apply suggestions from code review

Co-authored-by: Anders Jenbo <anders@jenbo.dk>
This commit is contained in:
Joshua Peisach 2025-06-16 09:38:17 -04:00
parent d34e8779ad
commit c6304fda99
No known key found for this signature in database
GPG Key ID: 41C3D4189AFEDB5A
2 changed files with 2 additions and 2 deletions

View File

@ -517,7 +517,7 @@ SDL3MeshCache Direct3DRMSDL3GPURenderer::UploadMesh(const MeshGroup& meshGroup)
FlattenSurfaces( FlattenSurfaces(
meshGroup.vertices.data(), meshGroup.vertices.data(),
meshGroup.vertices.size(), meshGroup.vertices.size(),
(const DWORD*)meshGroup.indices.data(), meshGroup.indices.data(),
meshGroup.indices.size(), meshGroup.indices.size(),
meshGroup.texture != nullptr, meshGroup.texture != nullptr,
finalVertices, finalVertices,

View File

@ -600,7 +600,7 @@ MeshCache UploadMesh(const MeshGroup& meshGroup)
FlattenSurfaces( FlattenSurfaces(
meshGroup.vertices.data(), meshGroup.vertices.data(),
meshGroup.vertices.size(), meshGroup.vertices.size(),
(const DWORD*) meshGroup.indices.data(), meshGroup.indices.data(),
meshGroup.indices.size(), meshGroup.indices.size(),
meshGroup.texture != nullptr, meshGroup.texture != nullptr,
cache.vertices, cache.vertices,