mirror of
https://github.com/glfw/glfw.git
synced 2024-11-26 06:14:35 +00:00
Fix glfwGetProcAddress documentation
This commit is contained in:
parent
f6f0771770
commit
c8e068712b
@ -307,12 +307,9 @@ void load_extensions(void)
|
|||||||
{
|
{
|
||||||
if (glfwExtensionSupported("GL_ARB_debug_output"))
|
if (glfwExtensionSupported("GL_ARB_debug_output"))
|
||||||
{
|
{
|
||||||
pfnGetDebugMessageLog = (PFNGLGETDEBUGMESSAGELOGARBPROC) glfwGetProcAddress("glGetDebugMessageLogARB");
|
pfnGetDebugMessageLog = (PFNGLGETDEBUGMESSAGELOGARBPROC)
|
||||||
if (pfnGetDebugMessageLog)
|
glfwGetProcAddress("glGetDebugMessageLogARB");
|
||||||
{
|
has_ARB_debug_output = 1;
|
||||||
// Both the extension name and the function pointer are present
|
|
||||||
has_ARB_debug_output = 1;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -3304,15 +3304,15 @@ GLFWAPI int glfwExtensionSupported(const char* extension);
|
|||||||
* without a current context will cause a @ref GLFW_NO_CURRENT_CONTEXT error.
|
* without a current context will cause a @ref GLFW_NO_CURRENT_CONTEXT error.
|
||||||
*
|
*
|
||||||
* @param[in] procname The ASCII encoded name of the function.
|
* @param[in] procname The ASCII encoded name of the function.
|
||||||
* @return The address of the function, or `NULL` if the function is
|
* @return The address of the function, or `NULL` if an [error](@ref
|
||||||
* unavailable or an [error](@ref error_handling) occurred.
|
* error_handling) occurred.
|
||||||
*
|
*
|
||||||
* @remarks The addresses of a given function is not guaranteed to be the same
|
* @remarks The addresses of a given function is not guaranteed to be the same
|
||||||
* between contexts.
|
* between contexts.
|
||||||
*
|
*
|
||||||
* @remarks This function may return a non-`NULL` address despite the
|
* @remarks This function may return a non-`NULL` address despite the
|
||||||
* associated version or extension not being available. Always check the
|
* associated version or extension not being available. Always check the
|
||||||
* context version or extension string presence first.
|
* context version or extension string first.
|
||||||
*
|
*
|
||||||
* @par Pointer Lifetime
|
* @par Pointer Lifetime
|
||||||
* The returned function pointer is valid until the context is destroyed or the
|
* The returned function pointer is valid until the context is destroyed or the
|
||||||
|
Loading…
Reference in New Issue
Block a user