GS-d3d: Fix Wmissing-braces warnings.

This commit is contained in:
lightningterror 2023-01-12 12:01:13 +01:00
parent 1a5d7c1c5d
commit 11f3fecd11
2 changed files with 2 additions and 2 deletions

View File

@ -783,7 +783,7 @@ void GSDevice11::UpdateCLUTTexture(GSTexture* sTex, u32 offsetX, u32 offsetY, GS
u32 offsetX, offsetY, dOffset; u32 offsetX, offsetY, dOffset;
u32 pad2; u32 pad2;
}; };
const Uniforms cb = {sTex->GetScale().x, sTex->GetScale().y, 0.0f, 0.0f, offsetX, offsetY, dOffset}; const Uniforms cb = {sTex->GetScale().x, sTex->GetScale().y, {0.0f, 0.0f}, offsetX, offsetY, dOffset};
m_ctx->UpdateSubresource(m_merge.cb.get(), 0, nullptr, &cb, 0, 0); m_ctx->UpdateSubresource(m_merge.cb.get(), 0, nullptr, &cb, 0, 0);
const GSVector4 dRect(0, 0, dSize, 1); const GSVector4 dRect(0, 0, dSize, 1);

View File

@ -530,7 +530,7 @@ void GSDevice12::UpdateCLUTTexture(GSTexture* sTex, u32 offsetX, u32 offsetY, GS
u32 offsetX, offsetY, dOffset; u32 offsetX, offsetY, dOffset;
u32 pad2; u32 pad2;
}; };
const Uniforms cb = {sTex->GetScale().x, sTex->GetScale().y, 0.0f, 0.0f, offsetX, offsetY, dOffset}; const Uniforms cb = {sTex->GetScale().x, sTex->GetScale().y, {0.0f, 0.0f}, offsetX, offsetY, dOffset};
SetUtilityPushConstants(&cb, sizeof(cb)); SetUtilityPushConstants(&cb, sizeof(cb));
const GSVector4 dRect(0, 0, dSize, 1); const GSVector4 dRect(0, 0, dSize, 1);