ref: gl: alias: fix strict aliasing by converting it to use float_bits_t union

This commit is contained in:
Alibek Omarov 2023-03-13 03:58:53 +03:00
parent 19a785a98a
commit ef0b227967
1 changed files with 2 additions and 2 deletions

View File

@ -292,8 +292,8 @@ void BuildTris( void )
t = (t + 0.5f) / m_pAliasHeader->skinheight;
// Carmack use floats and Valve use shorts here...
*(float *)&g_commands[g_numcommands++] = s;
*(float *)&g_commands[g_numcommands++] = t;
g_commands[g_numcommands++] = FloatAsInt( s );
g_commands[g_numcommands++] = FloatAsInt( t );
}
}