From 7640a35720a35972efb4781c16f57770c25109ba Mon Sep 17 00:00:00 2001 From: Flyinghead Date: Sat, 9 Jun 2018 17:22:01 +0200 Subject: [PATCH] Draw modifier volumes only if enabled in settings (defaults to true) --- core/nullDC.cpp | 1 + core/rend/gles/gldraw.cpp | 3 ++- core/types.h | 1 + 3 files changed, 4 insertions(+), 1 deletion(-) diff --git a/core/nullDC.cpp b/core/nullDC.cpp index 2c7a4df6a..c62db04e8 100755 --- a/core/nullDC.cpp +++ b/core/nullDC.cpp @@ -243,6 +243,7 @@ void LoadSettings() settings.aica.NoSound = cfgLoadInt("config","aica.NoSound",0); settings.rend.UseMipmaps = cfgLoadInt("config","rend.UseMipmaps",1); settings.rend.WideScreen = cfgLoadInt("config","rend.WideScreen",0); + settings.rend.ModifierVolumes = cfgLoadInt("config","rend.ModifierVolumes",1); settings.pvr.subdivide_transp = cfgLoadInt("config","pvr.Subdivide",0); diff --git a/core/rend/gles/gldraw.cpp b/core/rend/gles/gldraw.cpp index d2fc67786..ed0ae7a3a 100644 --- a/core/rend/gles/gldraw.cpp +++ b/core/rend/gles/gldraw.cpp @@ -1109,7 +1109,8 @@ void DrawStrips() /*if (!GetAsyncKeyState(VK_F1))*/ DrawList(pvrrc.global_param_op); - DrawModVols(); + if (settings.rend.ModifierVolumes) + DrawModVols(); //Alpha tested //setup alpha test state diff --git a/core/types.h b/core/types.h index 56fa73cd5..24df94bde 100644 --- a/core/types.h +++ b/core/types.h @@ -615,6 +615,7 @@ struct settings_t { bool UseMipmaps; bool WideScreen; + bool ModifierVolumes; } rend; struct