Fixed invalid pointer use.

master
Camilla Berglund ago%!(EXTRA string=12 years)
parent e991a0e7cc
commit 525b4151f0
  1. 2
      tests/modes.c

@ -103,7 +103,7 @@ static void list_modes(GLFWmonitor* monitor)
{
printf("%3u: %s", (unsigned int) i, format_mode(modes + i));
if (memcmp(&mode, modes + i, sizeof(GLFWvidmode)) == 0)
if (memcmp(mode, modes + i, sizeof(GLFWvidmode)) == 0)
printf(" (current mode)");
putchar('\n');

Loading…
Cancel
Save