diff --git a/OpenGL-Core/src/Platform/Windows/WindowsWindow.cpp b/OpenGL-Core/src/Platform/Windows/WindowsWindow.cpp index 322e4b66..6b1a6576 100644 --- a/OpenGL-Core/src/Platform/Windows/WindowsWindow.cpp +++ b/OpenGL-Core/src/Platform/Windows/WindowsWindow.cpp @@ -46,6 +46,10 @@ namespace GLCore { s_GLFWInitialized = true; } + glfwWindowHint(GLFW_CONTEXT_VERSION_MAJOR, 3); + glfwWindowHint(GLFW_CONTEXT_VERSION_MINOR, 3); + glfwWindowHint(GLFW_OPENGL_PROFILE, GLFW_OPENGL_CORE_PROFILE); + m_Window = glfwCreateWindow((int)props.Width, (int)props.Height, m_Data.Title.c_str(), nullptr, nullptr); glfwMakeContextCurrent(m_Window);