2
0
mirror of https://github.com/FWGS/xash3d-fwgs synced 2024-11-22 09:56:22 +01:00

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

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 );
}
}