Fixed missing xBRZ menu options on platforms without MMX support

xBRZ texture resize modes are no longer removed from menu for targets with HAVE_MMX undefined
This commit is contained in:
alexey.lysiuk 2017-01-22 12:09:56 +02:00
parent da4981ef91
commit 03f9425eb1

View file

@ -84,8 +84,11 @@ void gl_SetupMenu()
{
for(int i = (*opt)->mValues.Size()-1; i>=0; i--)
{
// Delete HQnX resize modes for non MSVC targets
if ((*opt)->mValues[i].Value >= 7.0)
// Delete hqNx MMX resize modes for targets
// without support of this instruction set
const auto index = llround((*opt)->mValues[i].Value);
if (index > 6 && index < 10)
{
(*opt)->mValues.Delete(i);
}