Fix glfwGetProcAddress documentation

This commit is contained in:
Camilla Berglund
2015-08-27 21:40:22 +02:00
parent f6f0771770
commit c8e068712b
2 changed files with 6 additions and 9 deletions
+3 -6
View File
@@ -307,12 +307,9 @@ void load_extensions(void)
{
if (glfwExtensionSupported("GL_ARB_debug_output"))
{
pfnGetDebugMessageLog = (PFNGLGETDEBUGMESSAGELOGARBPROC) glfwGetProcAddress("glGetDebugMessageLogARB");
if (pfnGetDebugMessageLog)
{
// Both the extension name and the function pointer are present
has_ARB_debug_output = 1;
}
pfnGetDebugMessageLog = (PFNGLGETDEBUGMESSAGELOGARBPROC)
glfwGetProcAddress("glGetDebugMessageLogARB");
has_ARB_debug_output = 1;
}
}