From 6f9259169cd77c19d4b1a33c4a915a77a31a8f28 Mon Sep 17 00:00:00 2001 From: raven02 Date: Wed, 26 Mar 2014 08:01:37 +0800 Subject: [PATCH] Menu : Disable Vertex Cache when HW T&L is disabled --- Windows/WndMainWindow.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Windows/WndMainWindow.cpp b/Windows/WndMainWindow.cpp index 9b42806724..03a87151b4 100644 --- a/Windows/WndMainWindow.cpp +++ b/Windows/WndMainWindow.cpp @@ -1656,6 +1656,13 @@ namespace MainWindow CHECKITEM(ID_EMULATION_CHEATS, g_Config.bEnableCheats); 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] = { ID_OPTIONS_SCREENAUTO, ID_OPTIONS_SCREEN1X,