mirror of
https://github.com/DrBeef/ioq3quest.git
synced 2024-11-10 14:52:00 +00:00
sort video modes only if there are modes to sort
This commit is contained in:
parent
cebdb640f3
commit
89a5a6429e
1 changed files with 2 additions and 1 deletions
|
@ -166,7 +166,8 @@ static void GLimp_DetectAvailableModes(void)
|
|||
|
||||
for( numModes = 0; modes[ numModes ]; numModes++ );
|
||||
|
||||
qsort( modes, numModes, sizeof( SDL_Rect* ), GLimp_CompareModes );
|
||||
if(numModes > 1)
|
||||
qsort( modes+1, numModes-1, sizeof( SDL_Rect* ), GLimp_CompareModes );
|
||||
|
||||
for( i = 0; i < numModes; i++ )
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue