RenderDoc无法连接OpenGL API,调整上下文配置后仍未解决
RenderDoc无法连接OpenGL上下文的问题
RenderDoc可以检测到运行中应用的OpenGL API,但会显示错误界面(界面提示:Failed to capture context: Could not inject into OpenGL context. The context was created before RenderDoc could hook it, or the driver does not support hooking this context type.)
我已通过以下Haskell代码将OpenGL上下文版本从4.6改为3.3并启用核心配置文件:
import Graphics.UI.GLUT -- 其他导入 main = do (_progName, _args) <- getArgsAndInitialize initialContextVersion $= (3, 3) initialContextProfile $= [CoreProfile] initialDisplayMode $= [DoubleBuffered] -- 渲染代码
这消除了部分警告,但RenderDoc仍然无法连接至该API。我使用freeglut.dll来实现GLUT功能。
内容的提问来源于stack exchange,提问作者A. Lukyanov
相关产品推荐
相关产品推荐

