Added bug fix from 2.7.6.

This commit is contained in:
Camilla Berglund
2012-05-07 00:13:38 +02:00
parent 26fc5cacda
commit d717c0a5ba
2 changed files with 7 additions and 0 deletions
+6
View File
@@ -298,6 +298,12 @@ static _GLFWfbconfig* getFBConfigs(_GLFWwindow* window, unsigned int* found)
(*found)++;
}
if (*found == 0)
{
free(fbconfigs);
return NULL;
}
return fbconfigs;
}