C++ OpenGL 3.3 GLX_ARB_create_context_配置文件在使用bumblebee的Linux上不可用

C++ OpenGL 3.3 GLX_ARB_create_context_配置文件在使用bumblebee的Linux上不可用,c++,linux,opengl,glew,glfw,C++,Linux,Opengl,Glew,Glfw,我在使用glfw设置OpenGL3.3应用程序时遇到问题。我明白了 OpenGL profile requested but GLX_ARB_create_context_profile is unavailable 尝试通过optirun运行应用程序时出错(我有Nvidia Optimus卡,因此没有其他方法)。其他OpenGL>3.3应用程序与optirun(unigine heaven)配合良好。。。这是。您确定需要这条线路吗 glfwOpenWindowHint(GLFW_OPENGL

我在使用glfw设置OpenGL3.3应用程序时遇到问题。我明白了

OpenGL profile requested but GLX_ARB_create_context_profile is unavailable

尝试通过optirun运行应用程序时出错(我有Nvidia Optimus卡,因此没有其他方法)。其他OpenGL>3.3应用程序与optirun(unigine heaven)配合良好。。。这是。

您确定需要这条线路吗

glfwOpenWindowHint(GLFW_OPENGL_PROFILE, GLFW_OPENGL_CORE_PROFILE);
删除它应该可以解决问题


如果有故障,请检查。

您确定需要这条线路吗

glfwOpenWindowHint(GLFW_OPENGL_PROFILE, GLFW_OPENGL_CORE_PROFILE);
删除它应该可以解决问题


如果它有故障,请检查。

老实说,我不知道。我从opengl-tutorial.org获得了这段代码。删除此行将使窗口在打开后立即关闭。编辑:从链接添加行修复了此问题。谢谢。老实说,我不知道。我从opengl-tutorial.org获得了这段代码。删除此行将使窗口在打开后立即关闭。编辑:从链接添加行修复了此问题。非常感谢。