gpt4 book ai didi

c++ - OpenGL 3.3 GLX_ARB_create_context_profile 在带有 bumblebee 的 Linux 上不可用

转载 作者:塔克拉玛干 更新时间:2023-11-02 23:40:48 25 4
gpt4 key购买 nike

我在使用 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" .

最佳答案

你确定你需要这条线吗?

glfwOpenWindowHint(GLFW_OPENGL_PROFILE, GLFW_OPENGL_CORE_PROFILE);

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

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

关于c++ - OpenGL 3.3 GLX_ARB_create_context_profile 在带有 bumblebee 的 Linux 上不可用,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/11383651/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com