diff options
| author | Markus Wick <degasus@users.noreply.github.com> | 2016-01-06 21:56:02 +0100 |
|---|---|---|
| committer | Markus Wick <degasus@users.noreply.github.com> | 2016-01-06 21:56:02 +0100 |
| commit | 05fdf0398b260f5e09b7a881336a2dcbcef074df (patch) | |
| tree | e09eca06b9ae14ab0730d9585599b6e023e438f5 /Source/Core/VideoBackends/Software/SWVertexLoader.cpp | |
| parent | e3da5644187243c106dd0e0c0470f5ccd38274d4 (diff) | |
| parent | 5d63a08a50504275a484c4fe8e98d13d7dbdc047 (diff) | |
Merge pull request #3313 from degasus/videosw
VideoSW: Clear Vertex data before usage
Diffstat (limited to 'Source/Core/VideoBackends/Software/SWVertexLoader.cpp')
| -rw-r--r-- | Source/Core/VideoBackends/Software/SWVertexLoader.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Source/Core/VideoBackends/Software/SWVertexLoader.cpp b/Source/Core/VideoBackends/Software/SWVertexLoader.cpp index 9d050770ac..bda8714f00 100644 --- a/Source/Core/VideoBackends/Software/SWVertexLoader.cpp +++ b/Source/Core/VideoBackends/Software/SWVertexLoader.cpp @@ -34,6 +34,8 @@ SWVertexLoader::~SWVertexLoader() void SWVertexLoader::SetFormat(u8 attributeIndex, u8 primitiveType) { + memset(&m_Vertex, 0, sizeof(m_Vertex)); + m_attributeIndex = attributeIndex; VertexLoaderUID uid(g_main_cp_state.vtx_desc, g_main_cp_state.vtx_attr[m_attributeIndex]); |
