Fix an issue where rendering broke when MultiSampleType = 0

This commit is contained in:
Luke Usher 2020-05-08 09:40:20 +01:00
parent e499d3ad07
commit 23104c8280
1 changed files with 2 additions and 1 deletions

View File

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