【问题标题】:OpenGL 3.3 GLX_ARB_create_context_profile is unavailable on Linux with bumblebeeOpenGL 3.3 GLX_ARB_create_context_profile 在带有 bumblebee 的 Linux 上不可用
【发布时间】:2012-07-08 04:17:08
【问题描述】:

我在使用 glfw 设置 OpenGL 3.3 应用程序时遇到问题。我明白了

OpenGL profile requested but GLX_ARB_create_context_profile is unavailable

当我尝试通过 optirun 运行我的应用程序时出错(我有 Nvidia Optimus 卡,所以没有其他方法)。其他 OpenGL > 3.3 应用程序适用于 optirun (unigine Heaven)...Here is code I try to run,这里是 result of "optirun glxinfo"

【问题讨论】:

    标签: c++ linux opengl glew glfw


    【解决方案1】:

    你确定需要这条线吗?

    glfwOpenWindowHint(GLFW_OPENGL_PROFILE, GLFW_OPENGL_CORE_PROFILE);
    

    删除它应该可以解决问题。

    如果出现段错误,请查看this question

    【讨论】:

    • 老实说,我不知道。我有来自 opengl-tutorial.org 的代码。删除此行会使窗口在打开后立即关闭。编辑:从您的链接添加行解决了这个问题。谢谢。
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2013-11-13
    • 1970-01-01
    • 1970-01-01
    • 2014-05-09
    • 1970-01-01
    • 2014-02-25
    • 2013-08-12
    相关资源
    最近更新 更多