From 238da01770b4542f4e3f96f929ea408f2c3f6b92 Mon Sep 17 00:00:00 2001 From: Camilla Berglund Date: Thu, 13 Dec 2012 20:04:17 +0100 Subject: [PATCH] Re-used profile name macros in glfwinfo. --- tests/glfwinfo.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/glfwinfo.c b/tests/glfwinfo.c index 4a80081c..8db99111 100644 --- a/tests/glfwinfo.c +++ b/tests/glfwinfo.c @@ -77,9 +77,9 @@ static const char* get_client_api_name(int api) static const char* get_profile_name_gl(GLint mask) { if (mask & GL_CONTEXT_COMPATIBILITY_PROFILE_BIT) - return "compatibility"; + return PROFILE_NAME_COMPAT; if (mask & GL_CONTEXT_CORE_PROFILE_BIT) - return "core"; + return PROFILE_NAME_CORE; return "unknown"; } @@ -87,9 +87,9 @@ static const char* get_profile_name_gl(GLint mask) static const char* get_profile_name_glfw(int profile) { if (profile == GLFW_OPENGL_COMPAT_PROFILE) - return "compatibility"; + return PROFILE_NAME_COMPAT; if (profile == GLFW_OPENGL_CORE_PROFILE) - return "core"; + return PROFILE_NAME_CORE; return "unknown"; }