Cleaner fix to the above

This commit is contained in:
Luke Usher 2020-05-08 10:00:46 +01:00
parent 85c0f608e2
commit fec845f6f8
2 changed files with 2 additions and 2 deletions

View File

@ -3760,7 +3760,7 @@ void GetMultiSampleOffsetAndScale(float& xScale, float& yScale, float& xOffset,
yOffset = 0.5f;
// NOTE: Can be 0, so we need to check for that too
if (g_Xbox_MultiSampleType > 0 && g_Xbox_MultiSampleType != XTL::X_D3DMULTISAMPLE_NONE) {
if (g_Xbox_MultiSampleType > 0) {
switch (g_Xbox_MultiSampleType)
{
case XTL::X_D3DMULTISAMPLE_2_SAMPLES_MULTISAMPLE_LINEAR:

View File

@ -669,7 +669,7 @@ void CxbxVertexBufferConverter::ConvertStream
HostRenderTarget_Height = XboxRenderTarget_Height;
}
bool bNeedRHWTransform = (g_Xbox_MultiSampleType > 0 && g_Xbox_MultiSampleType != XTL::X_D3DMULTISAMPLE_NONE) || (XboxRenderTarget_Width < HostRenderTarget_Width && XboxRenderTarget_Height < HostRenderTarget_Height);
bool bNeedRHWTransform = g_Xbox_MultiSampleType > 0 || (XboxRenderTarget_Width < HostRenderTarget_Width && XboxRenderTarget_Height < HostRenderTarget_Height);
for (uint32_t uiVertex = 0; uiVertex < uiVertexCount; uiVertex++) {
FLOAT *pVertexDataAsFloat = (FLOAT*)(&pHostVertexData[uiVertex * uiHostVertexStride]);