gsdx sw: fix GCC warning enumeral and non-enumeral type in conditional expression

This commit is contained in:
Gregory Hainaut 2016-08-12 19:20:07 +02:00
parent 5ad4cbace7
commit 41afd85a5d
1 changed files with 1 additions and 1 deletions

View File

@ -1443,7 +1443,7 @@ bool GSRendererSW::GetScanlineGlobalData(SharedData* data)
if(zwrite || ztest)
{
gd.sel.zpsm = GSLocalMemory::m_psm[context->ZBUF.PSM].fmt;
gd.sel.ztst = ztest ? context->TEST.ZTST : ZTST_ALWAYS;
gd.sel.ztst = ztest ? context->TEST.ZTST : (int)ZTST_ALWAYS;
gd.sel.zoverflow = (uint32)GSVector4i(m_vt.m_max.p).z == 0x80000000U;
}