Examples: Renamed glfw error callback for clarity.

This commit is contained in:
omar
2018-03-12 14:43:37 +01:00
parent b2453d7e8f
commit 1c18d65313
3 changed files with 6 additions and 6 deletions

View File

@ -583,7 +583,7 @@ static void frame_present()
g_FrameIndex = (g_FrameIndex + 1) % IMGUI_VK_QUEUED_FRAMES;
}
static void error_callback(int error, const char* description)
static void glfw_error_callback(int error, const char* description)
{
fprintf(stderr, "Error %d: %s\n", error, description);
}
@ -591,7 +591,7 @@ static void error_callback(int error, const char* description)
int main(int, char**)
{
// Setup window
glfwSetErrorCallback(error_callback);
glfwSetErrorCallback(glfw_error_callback);
if (!glfwInit())
return 1;