diff --git a/Engine/src/Platform/GraphicsAPI/DirectX/dxGraphicsContext.cpp b/Engine/src/Platform/GraphicsAPI/DirectX/dxGraphicsContext.cpp index 504fc6e..d22537a 100644 --- a/Engine/src/Platform/GraphicsAPI/DirectX/dxGraphicsContext.cpp +++ b/Engine/src/Platform/GraphicsAPI/DirectX/dxGraphicsContext.cpp @@ -35,6 +35,10 @@ namespace Light { m_SharedContext = std::make_shared(m_Device, m_DeviceContext, m_SwapChain, m_RenderTargetView); } + void dxGraphicsContext::OnWindowResize(const WindowResizedEvent& event) + { + SetResolution(event.GetSize()); + } void dxGraphicsContext::SetupDeviceAndSwapChain(GLFWwindow* windowHandle) {