diff options
Diffstat (limited to 'Graphics/GraphicsEngineOpenGL')
| -rw-r--r-- | Graphics/GraphicsEngineOpenGL/src/SwapChainGLImpl.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
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 ); } } |
