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:
parent
19a785a98a
commit
ef0b227967
@ -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 );
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user