From 2accdb76bde03dc0f60953e6f4ff0064c6fa7f0d Mon Sep 17 00:00:00 2001 From: Camilla Berglund Date: Wed, 17 Feb 2016 21:30:17 +0100 Subject: [PATCH] Cleanup --- src/egl_context.c | 4 ++-- src/init.c | 4 ++-- src/vulkan.c | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/egl_context.c b/src/egl_context.c index 00d4a7b4..ea970708 100644 --- a/src/egl_context.c +++ b/src/egl_context.c @@ -68,9 +68,9 @@ static const char* getErrorString(EGLint error) return "A NativeWindowType argument does not refer to a valid native window"; case EGL_CONTEXT_LOST: return "The application must destroy all contexts and reinitialise"; + default: + return "ERROR: UNKNOWN EGL ERROR"; } - - return "UNKNOWN EGL ERROR"; } // Returns the specified attribute of the specified EGLConfig diff --git a/src/init.c b/src/init.c index f245c7c1..06b09712 100644 --- a/src/init.c +++ b/src/init.c @@ -74,9 +74,9 @@ static const char* getErrorString(int error) return "The requested format is unavailable"; case GLFW_NO_WINDOW_CONTEXT: return "The specified window has no context"; + default: + return "ERROR: UNKNOWN GLFW ERROR"; } - - return "ERROR: UNKNOWN ERROR TOKEN PASSED TO glfwErrorString"; } diff --git a/src/vulkan.c b/src/vulkan.c index ae13d4ce..04db23e0 100644 --- a/src/vulkan.c +++ b/src/vulkan.c @@ -181,7 +181,7 @@ const char* _glfwGetVulkanResultString(VkResult result) case VK_ERROR_VALIDATION_FAILED_EXT: return "A validation layer found an error"; default: - return "ERROR: UNKNOWN VULKAN ERROR TOKEN"; + return "ERROR: UNKNOWN VULKAN ERROR"; } }