Renderer/Framebuffer: Add GetType (and rework backend internals)
This commit is contained in:
@@ -144,7 +144,7 @@ namespace Nz
|
||||
|
||||
StackVector<GLenum> invalidateAttachments = NazaraStackVector(GLenum, colorBufferCount + 1);
|
||||
|
||||
if (command.framebuffer->GetType() == OpenGLFramebuffer::Type::FBO)
|
||||
if (command.framebuffer->GetType() == FramebufferType::Texture)
|
||||
{
|
||||
context->glDrawBuffers(GLsizei(colorBufferCount), fboDrawBuffers.data());
|
||||
|
||||
|
||||
Reference in New Issue
Block a user