From 03f9425eb1df47845337c92e4142eb89b86a84dc Mon Sep 17 00:00:00 2001 From: "alexey.lysiuk" Date: Sun, 22 Jan 2017 12:09:56 +0200 Subject: [PATCH] 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 --- src/gl/system/gl_menu.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/gl/system/gl_menu.cpp b/src/gl/system/gl_menu.cpp index 11534436b4..8dffbc4f21 100644 --- a/src/gl/system/gl_menu.cpp +++ b/src/gl/system/gl_menu.cpp @@ -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); }