mirror of
https://github.com/libretro/beetle-psx-libretro.git
synced 2024-11-23 16:59:49 +00:00
Framebuffer - get rid of second constructor
This commit is contained in:
parent
f213a4efa8
commit
2ce23ee29f
@ -434,7 +434,11 @@ static void draw(GlRenderer *renderer)
|
||||
program_uniform1ui(renderer->command_buffer->program, "texture_flt", renderer->filter_type);
|
||||
|
||||
// Bind the out framebuffer
|
||||
Framebuffer _fb = Framebuffer(renderer->fb_out, renderer->fb_out_depth);
|
||||
Framebuffer _fb = Framebuffer(renderer->fb_out);
|
||||
glFramebufferTexture( GL_DRAW_FRAMEBUFFER,
|
||||
GL_DEPTH_ATTACHMENT,
|
||||
renderer->fb_out_depth->id,
|
||||
0);
|
||||
|
||||
glClear(GL_DEPTH_BUFFER_BIT);
|
||||
|
||||
|
@ -35,21 +35,6 @@ Framebuffer::Framebuffer(Texture* color_texture)
|
||||
InitializeWithColorTexture(this, color_texture);
|
||||
}
|
||||
|
||||
Framebuffer::Framebuffer(Texture* color_texture, Texture* depth_texture)
|
||||
{
|
||||
InitializeWithColorTexture(this, color_texture);
|
||||
|
||||
glFramebufferTexture( GL_DRAW_FRAMEBUFFER,
|
||||
GL_DEPTH_ATTACHMENT,
|
||||
depth_texture->id,
|
||||
0);
|
||||
|
||||
#ifdef DEBUG
|
||||
get_error();
|
||||
#endif
|
||||
}
|
||||
|
||||
|
||||
Framebuffer::~Framebuffer()
|
||||
{
|
||||
glDeleteFramebuffers(1, &this->id);
|
||||
|
@ -11,7 +11,6 @@ public:
|
||||
Texture* _color_texture;
|
||||
|
||||
Framebuffer(Texture* color_texture);
|
||||
Framebuffer(Texture* color_texture, Texture* depth_texture);
|
||||
~Framebuffer();
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user