implemented framerate-dependent particle quality reduction to try to
[xonotic/darkplaces.git] / menu.c
diff --git a/menu.c b/menu.c
index c7ca69c..a48e89a 100644 (file)
--- a/menu.c
+++ b/menu.c
@@ -5073,6 +5073,7 @@ void MP_Draw (void)
        // declarations that are needed right now
        extern r_refdef_scene_t menu_scene;
 
+       int oldqualityreduction;
        static r_refdef_scene_t clientscene;
        clientscene = r_refdef.scene;
        r_refdef.scene = menu_scene;
@@ -5080,6 +5081,10 @@ void MP_Draw (void)
        // reset the temp entities each frame
        r_refdef.scene.numtempentities = 0;
 
+       // menu scenes do not use reduced rendering quality
+       oldqualityreduction = r_refdef.view.qualityreduction;
+       r_refdef.view.qualityreduction = 0;
+
        PRVM_Begin;
        PRVM_SetProg(PRVM_MENUPROG);
 
@@ -5089,6 +5094,8 @@ void MP_Draw (void)
 
        PRVM_End;
 
+       r_refdef.view.qualityreduction = oldqualityreduction;
+
        menu_scene = r_refdef.scene;
        r_refdef.scene = clientscene;
 }