From 7a8dc6ba78e053ce699fd16a92e4ab499de02d6d Mon Sep 17 00:00:00 2001 From: Rudolf Polzer Date: Thu, 26 Jan 2012 18:45:51 +0100 Subject: [PATCH] reinit renderer if at initial startup texture compression state changed. Fixes lots of bugs. --- qcsrc/menu/menu.qc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/qcsrc/menu/menu.qc b/qcsrc/menu/menu.qc index 7b5dbd15a..96793fb77 100644 --- a/qcsrc/menu/menu.qc +++ b/qcsrc/menu/menu.qc @@ -55,7 +55,11 @@ void m_init() RegisterWeapons(); RegisterGametypes(); + float ddsload = cvar("r_texture_dds_load"); + float texcomp = cvar("gl_texturecompression"); updateCompression(); + if(ddsload != cvar("r_texture_dds_load") || texcomp != cvar("gl_texturecompression")) + localcmd("\nr_restart\n"); } float MENU_ASPECT = 1.25; // 1280x1024 -- 2.39.2