This commit is contained in:
Hartmut Seichter 2020-12-02 15:22:39 +01:00
parent 0cd3c99119
commit bf41ce9544
3 changed files with 10 additions and 3 deletions

View file

@ -146,8 +146,16 @@ struct window::impl {
if (!glfwInit())
{
debug::e() << "Initalization error";
}
int glfw_major, glfx_minor,glfw_rev;
glfwGetVersion(&glfw_major,&glfx_minor,&glfw_rev);
debug::d() << "GLFW " << glfw_major << "." << glfx_minor << "." << glfw_rev;
debug::d() << "GLFW header " << GLFW_VERSION_MAJOR << "." << GLFW_VERSION_MINOR << "." << GLFW_VERSION_REVISION;
update_display_list();
// request specific version 3.3
@ -206,7 +214,6 @@ struct window::impl {
{
if (_window && !glfwWindowShouldClose(_window))
{
input::get().reset();
// get new events