]> git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Don't display GLSL shaders option in the menu if the vid_gl20 doesn't exist in the...
authorMario <mario.mario@y7mail.com>
Wed, 15 Jul 2020 15:10:35 +0000 (01:10 +1000)
committerMario <mario.mario@y7mail.com>
Wed, 15 Jul 2020 15:10:56 +0000 (01:10 +1000)
qcsrc/menu/xonotic/dialog_settings_video.qc
xonotic-client.cfg

index 77f2602a1958091fb55dec083089de4cbf973ddc..849fa435bf752c65b603f01556d8b3aa7d044b6f 100644 (file)
@@ -155,8 +155,11 @@ void XonoticVideoSettingsTab_fill(entity me)
                me.TD(me, 1, 3, e = makeXonoticCheckBox_T(0, "gl_finish", _("Wait for GPU to finish each frame"),
                        _("Make the CPU wait for the GPU to finish each frame, can help with some strange input or video lag on some machines")));
        me.TR(me);
                me.TD(me, 1, 3, e = makeXonoticCheckBox_T(0, "gl_finish", _("Wait for GPU to finish each frame"),
                        _("Make the CPU wait for the GPU to finish each frame, can help with some strange input or video lag on some machines")));
        me.TR(me);
+       if(cvar_type("vid_gl20") & CVAR_TYPEFLAG_ENGINE)
+       {
                me.TD(me, 1, 3, e = makeXonoticCheckBox(0, "vid_gl20", _("Use OpenGL 2.0 shaders (GLSL)")));
                        e.applyButton = videoApplyButton;
                me.TD(me, 1, 3, e = makeXonoticCheckBox(0, "vid_gl20", _("Use OpenGL 2.0 shaders (GLSL)")));
                        e.applyButton = videoApplyButton;
+       }
        if(cvar("developer") > 0)
        {
                me.TR(me);
        if(cvar("developer") > 0)
        {
                me.TR(me);
index 90d4bdbf416b1fd9076b124e4f482ba4004ef15a..e3e523bd9f2e1ffb0073122c095548edbeffc5ca 100644 (file)
@@ -302,7 +302,7 @@ seta cl_casings_sloppy 1 "sloppy casings, may temporarily penetrate walls"
 seta cl_projectiles_sloppy 1 "sloppy projectiles, may temporarily penetrate walls"
 cl_stainmaps 0
 cl_particles_smoke 1
 seta cl_projectiles_sloppy 1 "sloppy projectiles, may temporarily penetrate walls"
 cl_stainmaps 0
 cl_particles_smoke 1
-vid_gl20 1
+set vid_gl20 1
 r_glsl_deluxemapping 1
 r_glsl_offsetmapping 0
 r_glsl_offsetmapping_lod 1
 r_glsl_deluxemapping 1
 r_glsl_offsetmapping 0
 r_glsl_offsetmapping_lod 1