## 修复内容 ### OpenGL SwapChain 架构重构 - OpenGLSwapChain 现在从 OpenGLDevice 获取 HDC,统一管理 - OpenGLDevice 拥有 HDC/HGLRC 的完整生命周期 - OpenGLSwapChain::Present() 使用 device->GetPresentationDC() ### API 变更 - GetContext() → GetGLContext() - GetDC() → GetPresentationDC() - Initialize(device*, hwnd, width, height) 新签名 ### 修复的测试 - minimal: rdc 34KB - triangle: rdc 50KB - quad: rdc 3.2MB - sphere: rdc 3.2MB ### 根本原因 之前传 HDC 给 RenderDoc::SetDevice(),需要传 HGLRC 才能正确 hook OpenGL 函数
6.0 KiB
6.0 KiB