]> git.rm.cloudns.org Git - xonotic/darkplaces.git/commitdiff
Make the clientrefdef static.
authorblack <black@d7cf8633-e32d-0410-b094-e92efae38249>
Sat, 5 Jan 2008 02:44:57 +0000 (02:44 +0000)
committerblack <black@d7cf8633-e32d-0410-b094-e92efae38249>
Sat, 5 Jan 2008 02:44:57 +0000 (02:44 +0000)
git-svn-id: svn://svn.icculus.org/twilight/branches/dp-mqc-render/darkplaces@7910 d7cf8633-e32d-0410-b094-e92efae38249

menu.c

diff --git a/menu.c b/menu.c
index e494080bfdb487d373e8058fd7a6f795abf3efdf..1cb8540203972e177783b5552b3690fd8c25db9b 100644 (file)
--- a/menu.c
+++ b/menu.c
@@ -5070,7 +5070,8 @@ void MP_KeyEvent (int key, char ascii, qboolean downevent)
 
 void MP_Draw (void)
 {
-       r_refdef_t clientrefdef = r_refdef;
+       static r_refdef_t clientrefdef;
+       clientrefdef = r_refdef;
        r_refdef = menu_refdef;
 
        PRVM_Begin;