mirror of
https://github.com/nillerusr/source-engine.git
synced 2026-08-07 17:29:36 +00:00
misaligment fixes
This commit is contained in:
@@ -763,7 +763,9 @@ void CStudioRenderContext::R_StudioBuildMeshGroup( const char *pModelName, bool
|
||||
|
||||
for (i = 0; i < pStripGroup->numIndices; ++i)
|
||||
{
|
||||
meshBuilder.Index( *pStripGroup->pIndex(i) );
|
||||
unsigned short index;
|
||||
memcpy( &index, pStripGroup->pIndex(i), sizeof(index) );
|
||||
meshBuilder.Index( index );
|
||||
meshBuilder.AdvanceIndex();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user