From c96bc379750afd74ace2a779099497ce2d9be25c Mon Sep 17 00:00:00 2001 From: vlj Date: Wed, 21 May 2014 21:49:30 +0200 Subject: [PATCH] Support 3 rtts --- src/graphics/glwrap.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); }