add missing mainDisplay ina gl
authordivverent <divverent@d7cf8633-e32d-0410-b094-e92efae38249>
Wed, 5 Aug 2009 18:36:22 +0000 (18:36 +0000)
committerdivverent <divverent@d7cf8633-e32d-0410-b094-e92efae38249>
Wed, 5 Aug 2009 18:36:22 +0000 (18:36 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9095 d7cf8633-e32d-0410-b094-e92efae38249

vid_agl.c

index b08b10d..dc67e3b 100644 (file)
--- a/vid_agl.c
+++ b/vid_agl.c
@@ -1129,6 +1129,7 @@ size_t VID_ListModes(vid_mode_t *modes, size_t maxcount)
        unsigned int n = CFArrayGetCount(vidmodes);
        unsigned int i;
        size_t k;
+       CGDirectDisplayID mainDisplay = CGMainDisplayID();
 
        k = 0;
        for(i = 0; i < n; ++i)