mirror of
https://github.com/gwm17/glfw.git
synced 2025-01-30 19:08:51 -05:00
Add window refresh events logging to iconify test
This commit is contained in:
parent
4b4cb9ce66
commit
4ad00fa388
|
@ -99,6 +99,9 @@ static void window_iconify_callback(GLFWwindow* window, int iconified)
|
||||||
static void window_refresh_callback(GLFWwindow* window)
|
static void window_refresh_callback(GLFWwindow* window)
|
||||||
{
|
{
|
||||||
int width, height;
|
int width, height;
|
||||||
|
|
||||||
|
printf("%0.2f Window refresh\n", glfwGetTime());
|
||||||
|
|
||||||
glfwGetFramebufferSize(window, &width, &height);
|
glfwGetFramebufferSize(window, &width, &height);
|
||||||
|
|
||||||
glfwMakeContextCurrent(window);
|
glfwMakeContextCurrent(window);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user