From 8435a45f64cef0985b340e91d6af3af6ffdb058c Mon Sep 17 00:00:00 2001 From: Egor Yusov Date: Fri, 20 Apr 2018 22:36:28 -0700 Subject: Reworked SetRenderTargets() function to set framebuffer size --- Graphics/GraphicsEngineOpenGL/src/SwapChainGLImpl.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'Graphics/GraphicsEngineOpenGL') diff --git a/Graphics/GraphicsEngineOpenGL/src/SwapChainGLImpl.cpp b/Graphics/GraphicsEngineOpenGL/src/SwapChainGLImpl.cpp index 3456d7bf..e58bcd89 100644 --- a/Graphics/GraphicsEngineOpenGL/src/SwapChainGLImpl.cpp +++ b/Graphics/GraphicsEngineOpenGL/src/SwapChainGLImpl.cpp @@ -104,7 +104,8 @@ void SwapChainGLImpl::Resize( Uint32 NewWidth, Uint32 NewHeight ) // To update the viewport is the only thing we need to do in OpenGL if( bIsDefaultFBBound ) { - // Update viewport + // Update framebuffer size and viewport + pImmediateCtxGL->SetRenderTargets(0, nullptr, nullptr); pImmediateCtxGL->SetViewports( 1, nullptr, 0, 0 ); } } -- cgit v1.2.3