- Fix a small bug where uninitialized variables were being used. (Related to r5470.)
This commit is contained in:
rogerman 2016-06-26 08:04:32 +00:00
parent d04c8eeae7
commit edf1d305d4
1 changed files with 2 additions and 2 deletions

View File

@ -2679,7 +2679,7 @@ FORCEINLINE void GPUEngineBase::_RenderPixel3D(const size_t srcX, const Fragment
{
if (SRCFORMAT == NDSColorFormat_BGR888_Rev)
{
FragmentColor src666;
FragmentColor src666 = src;
src666.r >>= 2;
src666.g >>= 2;
src666.b >>= 2;
@ -2729,7 +2729,7 @@ FORCEINLINE void GPUEngineBase::_RenderPixel3D(const size_t srcX, const Fragment
{
if (SRCFORMAT == NDSColorFormat_BGR888_Rev)
{
FragmentColor src666;
FragmentColor src666 = src;
src666.r >>= 2;
src666.g >>= 2;
src666.b >>= 2;