mirror of
https://github.com/hrydgard/ppsspp.git
synced 2025-04-02 11:01:50 -04:00
Oops, forgot to multiply in float ToRGBA().
Not actually used...
This commit is contained in:
parent
627027307c
commit
10456a09ac
1 changed files with 2 additions and 2 deletions
|
@ -98,7 +98,7 @@ template<>
|
|||
unsigned int Vec3<float>::ToRGB() const
|
||||
{
|
||||
#if defined(_M_SSE)
|
||||
__m128i c = _mm_cvtps_epi32(vec);
|
||||
__m128i c = _mm_cvtps_epi32(_mm_mul_ps(vec, _mm_set_ps1(255.0f)));
|
||||
__m128i c16 = _mm_packs_epi32(c, c);
|
||||
return _mm_cvtsi128_si32(_mm_packus_epi16(c16, c16)) & 0x00FFFFFF;
|
||||
#else
|
||||
|
@ -200,7 +200,7 @@ template<>
|
|||
unsigned int Vec4<float>::ToRGBA() const
|
||||
{
|
||||
#if defined(_M_SSE)
|
||||
__m128i c = _mm_cvtps_epi32(vec);
|
||||
__m128i c = _mm_cvtps_epi32(_mm_mul_ps(vec, _mm_set_ps1(255.0f)));
|
||||
__m128i c16 = _mm_packs_epi32(c, c);
|
||||
return _mm_cvtsi128_si32(_mm_packus_epi16(c16, c16));
|
||||
#else
|
||||
|
|
Loading…
Add table
Reference in a new issue