mirror of
https://github.com/Xaymar/obs-StreamFX
synced 2024-12-28 18:41:14 +00:00
gs-vertexbuffer: Do not assign uv layers that do not exist
This commit is contained in:
parent
cace17a817
commit
431fee7b9b
1 changed files with 1 additions and 1 deletions
|
@ -278,7 +278,7 @@ const gs::vertex gs::vertex_buffer::at(uint32_t idx)
|
|||
}
|
||||
|
||||
gs::vertex vtx(&m_positions[idx], &m_normals[idx], &m_tangents[idx], &m_colors[idx], nullptr);
|
||||
for (size_t n = 0; n < MAXIMUM_UVW_LAYERS; n++) {
|
||||
for (size_t n = 0; n < m_layers; n++) {
|
||||
vtx.uv[n] = &m_uvs[n][idx];
|
||||
}
|
||||
return vtx;
|
||||
|
|
Loading…
Reference in a new issue