]> git.rm.cloudns.org Git - xonotic/darkplaces.git/commitdiff
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 b08b10dd8ce4c483f5a908c326d2aa0bf7843d8b..dc67e3b92b86025eced4d41c00b65ef02f8bf7e6 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)