mirror of
https://github.com/scratchfoundation/bgfx.git
synced 2024-11-25 00:58:30 -05:00
Just use the last available MSAA type when higher type is not available.
This commit is contained in:
parent
d13b7d0d45
commit
20e65aee2f
1 changed files with 3 additions and 3 deletions
|
@ -334,7 +334,7 @@ namespace bgfx
|
||||||
|
|
||||||
void updateMsaa()
|
void updateMsaa()
|
||||||
{
|
{
|
||||||
for (uint32_t ii = 1; ii < countof(s_checkMsaa); ++ii)
|
for (uint32_t ii = 1, last = 0; ii < countof(s_checkMsaa); ++ii)
|
||||||
{
|
{
|
||||||
D3DMULTISAMPLE_TYPE msaa = s_checkMsaa[ii];
|
D3DMULTISAMPLE_TYPE msaa = s_checkMsaa[ii];
|
||||||
DWORD quality;
|
DWORD quality;
|
||||||
|
@ -351,11 +351,11 @@ namespace bgfx
|
||||||
{
|
{
|
||||||
s_msaa[ii].m_type = msaa;
|
s_msaa[ii].m_type = msaa;
|
||||||
s_msaa[ii].m_quality = uint32_imax(0, quality-1);
|
s_msaa[ii].m_quality = uint32_imax(0, quality-1);
|
||||||
|
last = ii;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
s_msaa[ii].m_type = D3DMULTISAMPLE_NONE;
|
s_msaa[ii] = s_msaa[last];
|
||||||
s_msaa[ii].m_quality = 0;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue