diff options
| author | Matthew Parlane <parlane@gmail.com> | 2016-05-03 22:34:00 +1200 |
|---|---|---|
| committer | Matthew Parlane <parlane@gmail.com> | 2016-05-03 22:34:00 +1200 |
| commit | c32ba0fc0671df6a2570880d75573c43dd34fef1 (patch) | |
| tree | f153f3fb0e5f2773b380667805aeefc93e538e92 /Source/Core/VideoBackends/Software/SWVertexLoader.cpp | |
| parent | e0a5f1bb75296ea42132897097d1c1d0fe495743 (diff) | |
| parent | 6f2d8483b7d8ce375c7946b8fd15555d34f5ac66 (diff) | |
Merge pull request #3744 from degasus/videosw
VideoSW: Fix special case.
Diffstat (limited to 'Source/Core/VideoBackends/Software/SWVertexLoader.cpp')
| -rw-r--r-- | Source/Core/VideoBackends/Software/SWVertexLoader.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Source/Core/VideoBackends/Software/SWVertexLoader.cpp b/Source/Core/VideoBackends/Software/SWVertexLoader.cpp index 9ab6e1c51b..a72eacd31c 100644 --- a/Source/Core/VideoBackends/Software/SWVertexLoader.cpp +++ b/Source/Core/VideoBackends/Software/SWVertexLoader.cpp @@ -154,10 +154,10 @@ void SWVertexLoader::SetFormat(u8 attributeIndex, u8 primitiveType) // special case if only pos and tex coord 0 and tex coord input is AB11 + // http://libogc.devkitpro.org/gx_8h.html#a55a426a3ff796db584302bddd829f002 m_TexGenSpecialCase = - ((g_main_cp_state.vtx_desc.Hex & 0x60600L) == g_main_cp_state.vtx_desc.Hex) && // only pos and tex coord 0 - (g_main_cp_state.vtx_desc.Tex0Coord != NOT_PRESENT) && - (xfmem.texMtxInfo[0].projection == XF_TEXPROJ_ST); + VertexLoaderManager::g_current_components == VB_HAS_UV0 && + xfmem.texMtxInfo[0].projection == XF_TEXPROJ_ST; } template <typename T, typename I> |
