From e2d6f2761c28f8b9f300c9f21bc9b6c5260811c2 Mon Sep 17 00:00:00 2001 From: Camilla Berglund Date: Thu, 6 Mar 2014 14:37:13 +0100 Subject: [PATCH] Fixed constness of function parameters. --- src/context.c | 4 ++-- src/internal.h | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/context.c b/src/context.c index 93b77d65..0c38e81d 100644 --- a/src/context.c +++ b/src/context.c @@ -87,7 +87,7 @@ static GLboolean parseGLVersion(int* api, int* major, int* minor, int* rev) ////// GLFW internal API ////// ////////////////////////////////////////////////////////////////////////// -GLboolean _glfwIsValidContextConfig(_GLFWwndconfig* wndconfig) +GLboolean _glfwIsValidContextConfig(const _GLFWwndconfig* wndconfig) { if (wndconfig->clientAPI != GLFW_OPENGL_API && wndconfig->clientAPI != GLFW_OPENGL_ES_API) @@ -466,7 +466,7 @@ GLboolean _glfwRefreshContextAttribs(void) return GL_TRUE; } -GLboolean _glfwIsValidContext(_GLFWwndconfig* wndconfig) +GLboolean _glfwIsValidContext(const _GLFWwndconfig* wndconfig) { _GLFWwindow* window = _glfwPlatformGetCurrentContext(); diff --git a/src/internal.h b/src/internal.h index 1e06460e..f0010ac3 100644 --- a/src/internal.h +++ b/src/internal.h @@ -743,7 +743,7 @@ GLboolean _glfwRefreshContextAttribs(void); * exists and whether all relevant options have supported and non-conflicting * values. */ -GLboolean _glfwIsValidContextConfig(_GLFWwndconfig* wndconfig); +GLboolean _glfwIsValidContextConfig(const _GLFWwndconfig* wndconfig); /*! @brief Checks whether the current context fulfils the specified hard * constraints. @@ -752,7 +752,7 @@ GLboolean _glfwIsValidContextConfig(_GLFWwndconfig* wndconfig); * otherwise. * @ingroup utility */ -GLboolean _glfwIsValidContext(_GLFWwndconfig* wndconfig); +GLboolean _glfwIsValidContext(const _GLFWwndconfig* wndconfig); /*! @ingroup utility */