From: divverent Date: Wed, 5 Aug 2009 18:36:22 +0000 (+0000) Subject: add missing mainDisplay ina gl X-Git-Tag: xonotic-v0.1.0preview~1534 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=b56289d746d7adc1c06c2e300bb408a5a77541cd;p=xonotic%2Fdarkplaces.git add missing mainDisplay ina gl git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9095 d7cf8633-e32d-0410-b094-e92efae38249 --- diff --git a/vid_agl.c b/vid_agl.c index b08b10dd..dc67e3b9 100644 --- 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)