diff options
| author | Egor Yusov <egor.yusov@gmail.com> | 2018-04-21 05:36:28 +0000 |
|---|---|---|
| committer | Egor Yusov <egor.yusov@gmail.com> | 2018-04-21 05:36:28 +0000 |
| commit | 8435a45f64cef0985b340e91d6af3af6ffdb058c (patch) | |
| tree | 89c9a6298f41b5f37089eb1f5ef8a18a489f61ef /Graphics/GraphicsEngineOpenGL | |
| parent | Added comments (diff) | |
| download | DiligentCore-8435a45f64cef0985b340e91d6af3af6ffdb058c.tar.gz DiligentCore-8435a45f64cef0985b340e91d6af3af6ffdb058c.zip | |
Reworked SetRenderTargets() function to set framebuffer size
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 ); } } |
