[Coverity] Remove redundant if() comparisons

This commit is contained in:
baldurk
2018-05-08 12:10:19 +01:00
parent 082ab4d75d
commit a45c222941
2 changed files with 1 additions and 4 deletions
@@ -839,9 +839,6 @@ void GLPipelineStateViewer::setShaderState(const GLPipe::Shader &stage, RDLabel
node->setTag(QVariant::fromValue(idx));
if(!filledSlot)
setEmptyRow(node);
if(!usedSlot)
setInactiveRow(node);
@@ -3458,7 +3458,7 @@ void WrappedID3D11DeviceContext::OMSetRenderTargetsAndUnorderedAccessViews(
// log (which might make this combination valid on replay without some of the targets!)
for(UINT i = 0; i < NumUAVs; i++)
{
if(UAVs && UAVs[i])
if(UAVs[i])
{
MarkResourceReferenced(GetIDForResource(UAVs[i]), eFrameRef_Read);
MarkResourceReferenced(GetViewResourceResID(UAVs[i]), eFrameRef_Read);