OpenGL: Restructure tests similar to D3D12 layout

- Move old test files to new unit/integration structure
- Add OpenGL Test Fixture
- Update CMakeLists.txt for new layout
- Add OpenGL_Test_Restructuring_Plan.md
This commit is contained in:
2026-03-20 17:37:09 +08:00
parent 3cd3b04c7e
commit 0a19fdfb0f
19 changed files with 843 additions and 103 deletions

View File

@@ -109,7 +109,13 @@ void OpenGLSwapChain::Present(uint32_t syncInterval, uint32_t flags) {
}
void OpenGLSwapChain::Resize(uint32_t width, uint32_t height) {
Resize(static_cast<int>(width), static_cast<int>(height));
m_width = width;
m_height = height;
glfwSetWindowSize(m_window, width, height);
int w, h;
glfwGetFramebufferSize(m_window, &w, &h);
m_framebufferWidth = w;
m_framebufferHeight = h;
}
void OpenGLSwapChain::SetFullscreen(bool fullscreen) {