Add feature available/implemented errors

From upstream: 9a87c2a4b4.
This commit is contained in:
Luflosi
2020-06-03 20:04:54 +02:00
parent f9e60e7ef6
commit 5263f6598c
6 changed files with 104 additions and 35 deletions

4
glfw/init.c vendored
View File

@@ -168,6 +168,10 @@ void _glfwInputError(int code, const char* format, ...)
strcpy(description, "The requested format is unavailable");
else if (code == GLFW_NO_WINDOW_CONTEXT)
strcpy(description, "The specified window has no context");
else if (code == GLFW_FEATURE_UNAVAILABLE)
strcpy(description, "The requested feature cannot be implemented for this platform");
else if (code == GLFW_FEATURE_UNIMPLEMENTED)
strcpy(description, "The requested feature has not yet been implemented for this platform");
else
strcpy(description, "ERROR: UNKNOWN GLFW ERROR");
}