Lehks / NostraEngine

A 3D game engine made by students of the htw saar.
MIT License
2 stars 0 forks source link

Core Dump when closing a window on Linux that was previously in fullscreen #69

Closed Lehks closed 6 years ago

Lehks commented 6 years ago

A simple window creation test program failed with this error:

crash

This was the code of the program:

#include <nostraengine/window/GLFWWindow.hpp>
#include <GLFW/glfw3.h>

using namespace NOE::NOE_WINDOW;

int main()
{
    GLFWWindow window;

    window.createWindow(500, 500, "Window", window.getPrimaryMonitor());

    window.update();

    using namespace std::chrono_literals;

    std::this_thread::sleep_for(2s);

    window.makeWindowed();

    while(!glfwWindowShouldClose(reinterpret_cast<GLFWwindow*>(window.getUnderlying())))
    {
        window.update();
    }

    window.closeWindow();

    return 0;
}
Dark-Delu commented 6 years ago

I need access to our build server to further investigate this issue.

Dark-Delu commented 6 years ago

Fixed.