mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-22 22:00:39 -06:00
Assorted warning fixes, small mixer improvement when both DTK and HLE audio are used
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@1100 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
@ -367,7 +367,7 @@ void VertexLoader::CompileVertexTranslator()
|
||||
break;
|
||||
}
|
||||
}
|
||||
if (j == 8 && !((m_NativeFmt->m_components&VB_HAS_TEXMTXIDXALL) & (VB_HAS_TEXMTXIDXALL<<(i+1)))) // no more tex coords and tex matrices, so exit loop
|
||||
if (j == 8 && !((m_NativeFmt->m_components & VB_HAS_TEXMTXIDXALL) & (VB_HAS_TEXMTXIDXALL << (i + 1)))) // no more tex coords and tex matrices, so exit loop
|
||||
break;
|
||||
}
|
||||
}
|
||||
@ -379,7 +379,8 @@ void VertexLoader::CompileVertexTranslator()
|
||||
|
||||
PortableVertexDeclaration vtx_decl;
|
||||
|
||||
|
||||
// TODO - merge all the below into the ifs and stuff above.
|
||||
// Also merge ComputeVertexSize into the result.
|
||||
int m_components = m_NativeFmt->m_components;
|
||||
|
||||
const TVtxAttr &vtx_attr = m_VtxAttr;
|
||||
@ -445,7 +446,6 @@ void VertexLoader::CompileVertexTranslator()
|
||||
// TextureCoord
|
||||
for (int i = 0; i < 8; i++) {
|
||||
if (tc[i] != NOT_PRESENT || (m_components & (VB_HAS_TEXMTXIDX0 << i))) {
|
||||
// TODO : More potential disalignment!
|
||||
if (m_components & (VB_HAS_TEXMTXIDX0 << i)) {
|
||||
if (tc[i] != NOT_PRESENT) {
|
||||
vtx_decl.texcoord_offset[i] = offset;
|
||||
|
Reference in New Issue
Block a user