mirror of
https://github.com/glfw/glfw
synced 2026-09-26 16:18:21 +03:00
Fix function return value when uninitialized
(cherry picked from commit f74ff2aa10)
This commit is contained in:
parent
8d95aeac69
commit
438cd224d7
1 changed files with 1 additions and 1 deletions
|
|
@ -637,7 +637,7 @@ GLFWAPI const char* glfwGetKeyName(int key, int scancode)
|
|||
|
||||
GLFWAPI int glfwGetKeyScancode(int key)
|
||||
{
|
||||
_GLFW_REQUIRE_INIT_OR_RETURN(-1);
|
||||
_GLFW_REQUIRE_INIT_OR_RETURN(0);
|
||||
|
||||
if (key < GLFW_KEY_SPACE || key > GLFW_KEY_LAST)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue