mirror of
https://github.com/glfw/glfw.git
synced 2025-10-04 13:46:37 +00:00
Use the same error callback in the simple sample as in wave and heightmap
Besides improving consistency, this also ensures that error messages end with newlines.
This commit is contained in:
parent
25878d68e0
commit
8ff1ea3fc1
@ -32,7 +32,7 @@
|
|||||||
|
|
||||||
static void error_callback(int error, const char* description)
|
static void error_callback(int error, const char* description)
|
||||||
{
|
{
|
||||||
fputs(description, stderr);
|
fprintf(stderr, "Error: %s\n", description);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void key_callback(GLFWwindow* window, int key, int scancode, int action, int mods)
|
static void key_callback(GLFWwindow* window, int key, int scancode, int action, int mods)
|
||||||
|
Loading…
Reference in New Issue
Block a user