mirror of
https://github.com/gwm17/glfw.git
synced 2024-11-22 18:28:52 -05:00
Fixed invalid pointer use.
This commit is contained in:
parent
e991a0e7cc
commit
525b4151f0
|
@ -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…
Reference in New Issue
Block a user