mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2024-11-11 07:12:16 +00:00
- change _mm_load_ss to _mm_set_ss just in case compilers are really dumb
This commit is contained in:
parent
fea4079b7c
commit
a6e47b571f
1 changed files with 1 additions and 1 deletions
|
@ -121,7 +121,7 @@ namespace swrenderer
|
|||
#ifdef NO_SSE
|
||||
float rcp_dist = 1.0f / (dist2 * 0.01f);
|
||||
#else
|
||||
float rcp_dist = _mm_cvtss_f32(_mm_rsqrt_ss(_mm_load_ss(&dist2)));
|
||||
float rcp_dist = _mm_cvtss_f32(_mm_rsqrt_ss(_mm_set_ss(dist2)));
|
||||
#endif
|
||||
float dist = dist2 * rcp_dist;
|
||||
float distance_attenuation = (256.0f - MIN(dist * lights[i].radius, 256.0f));
|
||||
|
|
Loading…
Reference in a new issue