Skip to content

Commit 16aee93

Browse files
committed
SDL3_GPU: Use a reference instead of copying
1 parent 6d3b114 commit 16aee93

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

SDL3_GPU/src/main.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,7 @@ std::optional<MyMesh> ImportMesh(const std::filesystem::path& meshPath) {
199199
std::vector<MyVertex> vertices(mesh->mNumVertices);
200200
for (int i = 0; i < mesh->mNumVertices; i++) {
201201
const aiVector3D& pos = mesh->mVertices[i];
202-
const aiVector3D tex = mesh->mTextureCoords[0][i];
202+
const aiVector3D& tex = mesh->mTextureCoords[0][i];
203203
SDL_Log("Assimp: Vertex %d: pos{x: %f, y: %f, z: %f} tex{x: %f, y: %f, z: %f}", i, pos.x, pos.y, pos.z, tex.x, tex.y, tex.z);
204204
vertices[i] = MyVertex{
205205
.pos = math::float3(pos.x, pos.y, pos.z),

0 commit comments

Comments
 (0)