Merge pull request #5727 from raven02/patch-34

Menu : Disable Vertex Cache when HW T&L is disabled
This commit is contained in:
Henrik Rydgård 2014-03-26 01:09:12 +01:00
commit e7641457b0

View File

@ -1656,6 +1656,13 @@ namespace MainWindow
CHECKITEM(ID_EMULATION_CHEATS, g_Config.bEnableCheats); CHECKITEM(ID_EMULATION_CHEATS, g_Config.bEnableCheats);
CHECKITEM(ID_OPTIONS_IGNOREWINKEY, g_Config.bIgnoreWindowsKey); CHECKITEM(ID_OPTIONS_IGNOREWINKEY, g_Config.bIgnoreWindowsKey);
// Disable Vertex Cache when HW T&L is disabled.
if (!g_Config.bHardwareTransform) {
EnableMenuItem(menu, ID_OPTIONS_VERTEXCACHE, MF_GRAYED);
} else {
EnableMenuItem(menu, ID_OPTIONS_VERTEXCACHE, MF_ENABLED);
}
static const int zoomitems[11] = { static const int zoomitems[11] = {
ID_OPTIONS_SCREENAUTO, ID_OPTIONS_SCREENAUTO,
ID_OPTIONS_SCREEN1X, ID_OPTIONS_SCREEN1X,