Added error setting for more cases of invalid tokens.

This commit is contained in:
Camilla Berglund
2011-10-08 23:41:30 +02:00
parent 0544afeb06
commit 1960d1ebb1
3 changed files with 7 additions and 6 deletions
+2
View File
@@ -152,6 +152,7 @@ GLFWAPI void glfwEnable(GLFWwindow window, int token)
enableKeyRepeat(window);
break;
default:
_glfwSetError(GLFW_INVALID_ENUM, NULL);
break;
}
}
@@ -184,6 +185,7 @@ GLFWAPI void glfwDisable(GLFWwindow window, int token)
disableKeyRepeat(window);
break;
default:
_glfwSetError(GLFW_INVALID_ENUM, NULL);
break;
}
}