This commit is contained in:
twinaphex 2017-03-27 21:07:20 +02:00
parent 3db19cccff
commit 1d3a5944ee
2 changed files with 1 additions and 8 deletions

View File

@ -11,7 +11,7 @@ static void InitializeWithColorTexture(Framebuffer *fb, Texture* color_texture)
fb->id = id;
fb->_color_texture = color_texture;
fb->bind();
glBindFramebuffer(GL_DRAW_FRAMEBUFFER, fb->id);
glFramebufferTexture( GL_DRAW_FRAMEBUFFER,
GL_COLOR_ATTACHMENT0,
@ -52,8 +52,3 @@ Framebuffer::~Framebuffer()
{
glDeleteFramebuffers(1, &this->id);
}
void Framebuffer::bind()
{
glBindFramebuffer(GL_DRAW_FRAMEBUFFER, this->id);
}

View File

@ -13,8 +13,6 @@ public:
Framebuffer(Texture* color_texture);
Framebuffer(Texture* color_texture, Texture* depth_texture);
~Framebuffer();
void bind();
};
#endif