1
0
forked from mirrors/0ad

Fixes calls to SetVertexAttributeFormat with zero stride.

This was SVN commit r27139.
This commit is contained in:
vladislavbelov
2022-10-09 13:03:42 +00:00
parent a311539ec9
commit c57b416e20
5 changed files with 20 additions and 20 deletions
+2 -2
View File
@@ -106,11 +106,11 @@ void DrawTexture(
deviceCommandContext->SetVertexAttributeFormat(
Renderer::Backend::VertexAttributeStream::POSITION,
Renderer::Backend::Format::R32G32B32_SFLOAT, 0, 0,
Renderer::Backend::Format::R32G32B32_SFLOAT, 0, sizeof(float) * 3,
Renderer::Backend::VertexAttributeRate::PER_VERTEX, 0);
deviceCommandContext->SetVertexAttributeFormat(
Renderer::Backend::VertexAttributeStream::UV0,
Renderer::Backend::Format::R32G32_SFLOAT, 0, 0,
Renderer::Backend::Format::R32G32_SFLOAT, 0, sizeof(float) * 2,
Renderer::Backend::VertexAttributeRate::PER_VERTEX, 1);
deviceCommandContext->SetVertexBufferData(