From 86b2d2f3273bfe1d3d0fa34245aa7463f474ca5b Mon Sep 17 00:00:00 2001 From: Vincent Lejeune Date: Thu, 15 Jan 2015 18:52:41 +0100 Subject: [PATCH] Remove old functions --- src/graphics/rtts.cpp | 20 -------------------- 1 file changed, 20 deletions(-) diff --git a/src/graphics/rtts.cpp b/src/graphics/rtts.cpp index ad735d2a8..7bd11e9c7 100644 --- a/src/graphics/rtts.cpp +++ b/src/graphics/rtts.cpp @@ -48,26 +48,6 @@ static GLuint generateRTT(const core::dimension2du &res, GLint internalFormat, G return result; } -static GLuint generateFBO(GLuint ColorAttachement) -{ - GLuint fbo; - glGenFramebuffers(1, &fbo); - glBindFramebuffer(GL_FRAMEBUFFER, fbo); - glFramebufferTexture2D(GL_FRAMEBUFFER, GL_COLOR_ATTACHMENT0, GL_TEXTURE_2D, ColorAttachement, 0); - GLenum result = glCheckFramebufferStatus(GL_FRAMEBUFFER); - assert(result == GL_FRAMEBUFFER_COMPLETE_EXT); - return fbo; -} - -static GLuint generateFBO(GLuint ColorAttachement, GLuint DepthAttachement) -{ - GLuint fbo = generateFBO(ColorAttachement); - glFramebufferTexture2D(GL_FRAMEBUFFER, GL_DEPTH_STENCIL_ATTACHMENT, GL_TEXTURE_2D, DepthAttachement, 0); - GLenum result = glCheckFramebufferStatus(GL_FRAMEBUFFER); - assert(result == GL_FRAMEBUFFER_COMPLETE_EXT); - return fbo; -} - RTT::RTT(size_t width, size_t height) { m_width = width;