mirror of https://github.com/PCSX2/pcsx2.git
GS: Fix variable initializations.
Codacy Warning: Variable 'variable' is assigned in constructor body. Consider performing initialization in initialization list.
This commit is contained in:
parent
ce34fbe502
commit
313fe1ca2c
|
@ -2423,13 +2423,12 @@ bool GSTextureCache::Source::ClutMatch(const PaletteKey& palette_key)
|
||||||
GSTextureCache::Target::Target(const GIFRegTEX0& TEX0, const bool depth_supported, const int type)
|
GSTextureCache::Target::Target(const GIFRegTEX0& TEX0, const bool depth_supported, const int type)
|
||||||
: m_type(type)
|
: m_type(type)
|
||||||
, m_used(false)
|
, m_used(false)
|
||||||
|
, m_valid(GSVector4i::zero())
|
||||||
, m_depth_supported(depth_supported)
|
, m_depth_supported(depth_supported)
|
||||||
{
|
{
|
||||||
m_TEX0 = TEX0;
|
m_TEX0 = TEX0;
|
||||||
m_32_bits_fmt |= (GSLocalMemory::m_psm[TEX0.PSM].trbpp != 16);
|
m_32_bits_fmt |= (GSLocalMemory::m_psm[TEX0.PSM].trbpp != 16);
|
||||||
m_dirty_alpha = GSLocalMemory::m_psm[TEX0.PSM].trbpp != 24;
|
m_dirty_alpha = GSLocalMemory::m_psm[TEX0.PSM].trbpp != 24;
|
||||||
|
|
||||||
m_valid = GSVector4i::zero();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void GSTextureCache::Target::Update()
|
void GSTextureCache::Target::Update()
|
||||||
|
|
|
@ -135,15 +135,14 @@ void GSTextureCacheSW::IncAge()
|
||||||
//
|
//
|
||||||
|
|
||||||
GSTextureCacheSW::Texture::Texture(u32 tw0, const GIFRegTEX0& TEX0, const GIFRegTEXA& TEXA)
|
GSTextureCacheSW::Texture::Texture(u32 tw0, const GIFRegTEX0& TEX0, const GIFRegTEXA& TEXA)
|
||||||
: m_buff(NULL)
|
: m_TEX0(TEX0)
|
||||||
|
, m_TEXA(TEXA)
|
||||||
|
, m_buff(NULL)
|
||||||
, m_tw(tw0)
|
, m_tw(tw0)
|
||||||
, m_age(0)
|
, m_age(0)
|
||||||
, m_complete(false)
|
, m_complete(false)
|
||||||
, m_p2t(NULL)
|
, m_p2t(NULL)
|
||||||
{
|
{
|
||||||
m_TEX0 = TEX0;
|
|
||||||
m_TEXA = TEXA;
|
|
||||||
|
|
||||||
if (m_tw == 0)
|
if (m_tw == 0)
|
||||||
{
|
{
|
||||||
m_tw = std::max<int>(m_TEX0.TW, GSLocalMemory::m_psm[m_TEX0.PSM].pal == 0 ? 3 : 5); // makes one row 32 bytes at least, matches the smallest block size that is allocated for m_buff
|
m_tw = std::max<int>(m_TEX0.TW, GSLocalMemory::m_psm[m_TEX0.PSM].pal == 0 ? 3 : 5); // makes one row 32 bytes at least, matches the smallest block size that is allocated for m_buff
|
||||||
|
|
Loading…
Reference in New Issue