1
0
Fork 0
mirror of https://github.com/gwm17/glfw.git synced 2024-11-23 10:48:51 -05:00

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

View File

@ -341,6 +341,7 @@ version of GLFW.</p>
<li>[Win32] Bugfix: The array for WGL context attributes was too small and could overflow</li> <li>[Win32] Bugfix: The array for WGL context attributes was too small and could overflow</li>
<li>[Win32] Bugfix: Alt+F4 hot key was not translated into <code>WM_CLOSE</code></li> <li>[Win32] Bugfix: Alt+F4 hot key was not translated into <code>WM_CLOSE</code></li>
<li>[Win32] Bugfix: The <code>GLFW_WINDOW_NO_RESIZE</code> window parameter was always zero</li> <li>[Win32] Bugfix: The <code>GLFW_WINDOW_NO_RESIZE</code> window parameter was always zero</li>
<li>[Win32] Bugfix: A test was missing for whether all available pixel formats had been disqualified</li>
</ul> </ul>
<h3>v2.7</h3> <h3>v2.7</h3>

View File

@ -298,6 +298,12 @@ static _GLFWfbconfig* getFBConfigs(_GLFWwindow* window, unsigned int* found)
(*found)++; (*found)++;
} }
if (*found == 0)
{
free(fbconfigs);
return NULL;
}
return fbconfigs; return fbconfigs;
} }