mirror of
https://github.com/glfw/glfw.git
synced 2024-11-26 12:02:00 +00:00
Fixed constness of function parameters.
This commit is contained in:
parent
6029585f19
commit
e2d6f2761c
@ -87,7 +87,7 @@ static GLboolean parseGLVersion(int* api, int* major, int* minor, int* rev)
|
|||||||
////// GLFW internal API //////
|
////// GLFW internal API //////
|
||||||
//////////////////////////////////////////////////////////////////////////
|
//////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
GLboolean _glfwIsValidContextConfig(_GLFWwndconfig* wndconfig)
|
GLboolean _glfwIsValidContextConfig(const _GLFWwndconfig* wndconfig)
|
||||||
{
|
{
|
||||||
if (wndconfig->clientAPI != GLFW_OPENGL_API &&
|
if (wndconfig->clientAPI != GLFW_OPENGL_API &&
|
||||||
wndconfig->clientAPI != GLFW_OPENGL_ES_API)
|
wndconfig->clientAPI != GLFW_OPENGL_ES_API)
|
||||||
@ -466,7 +466,7 @@ GLboolean _glfwRefreshContextAttribs(void)
|
|||||||
return GL_TRUE;
|
return GL_TRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
GLboolean _glfwIsValidContext(_GLFWwndconfig* wndconfig)
|
GLboolean _glfwIsValidContext(const _GLFWwndconfig* wndconfig)
|
||||||
{
|
{
|
||||||
_GLFWwindow* window = _glfwPlatformGetCurrentContext();
|
_GLFWwindow* window = _glfwPlatformGetCurrentContext();
|
||||||
|
|
||||||
|
@ -743,7 +743,7 @@ GLboolean _glfwRefreshContextAttribs(void);
|
|||||||
* exists and whether all relevant options have supported and non-conflicting
|
* exists and whether all relevant options have supported and non-conflicting
|
||||||
* values.
|
* values.
|
||||||
*/
|
*/
|
||||||
GLboolean _glfwIsValidContextConfig(_GLFWwndconfig* wndconfig);
|
GLboolean _glfwIsValidContextConfig(const _GLFWwndconfig* wndconfig);
|
||||||
|
|
||||||
/*! @brief Checks whether the current context fulfils the specified hard
|
/*! @brief Checks whether the current context fulfils the specified hard
|
||||||
* constraints.
|
* constraints.
|
||||||
@ -752,7 +752,7 @@ GLboolean _glfwIsValidContextConfig(_GLFWwndconfig* wndconfig);
|
|||||||
* otherwise.
|
* otherwise.
|
||||||
* @ingroup utility
|
* @ingroup utility
|
||||||
*/
|
*/
|
||||||
GLboolean _glfwIsValidContext(_GLFWwndconfig* wndconfig);
|
GLboolean _glfwIsValidContext(const _GLFWwndconfig* wndconfig);
|
||||||
|
|
||||||
/*! @ingroup utility
|
/*! @ingroup utility
|
||||||
*/
|
*/
|
||||||
|
Loading…
Reference in New Issue
Block a user