diff --git a/src/graphics/glwrap.cpp b/src/graphics/glwrap.cpp index 2e602713b..137efd50d 100644 --- a/src/graphics/glwrap.cpp +++ b/src/graphics/glwrap.cpp @@ -568,7 +568,7 @@ void FrameBuffer::Bind() glBindFramebuffer(GL_FRAMEBUFFER, fbo); glViewport(0, 0, width, height); irr::video::COpenGLDriver *gl_driver = (irr::video::COpenGLDriver*)irr_driver->getDevice()->getVideoDriver(); - GLenum bufs[] = { GL_COLOR_ATTACHMENT0, GL_COLOR_ATTACHMENT1 }; + GLenum bufs[] = { GL_COLOR_ATTACHMENT0, GL_COLOR_ATTACHMENT1, GL_COLOR_ATTACHMENT2 }; gl_driver->extGlDrawBuffers(RenderTargets.size(), bufs); }