OpenGLRenderer: Fix Y flipping for FBOs

This commit is contained in:
Jérôme Leclercq
2021-02-20 19:23:29 +01:00
parent fb3468854f
commit 311cfeaf3c
8 changed files with 83 additions and 9 deletions

View File

@@ -142,6 +142,8 @@ namespace Nz
std::copy(clearValues.begin(), clearValues.end(), setFramebuffer.clearValues.begin());
m_commands.emplace_back(std::move(setFramebuffer));
m_currentStates.shouldFlipY = (framebuffer.GetType() == OpenGLFramebuffer::Type::Window);
}
inline void OpenGLCommandBuffer::SetScissor(Nz::Recti scissorRegion)