Browse Source

Render: Dont create double framebuffers

master
Riyyi 4 months ago
parent
commit
c5ed219ad2
  1. 5
      src/inferno/render/framebuffer.cpp

5
src/inferno/render/framebuffer.cpp

@ -22,11 +22,6 @@ std::shared_ptr<Framebuffer> Framebuffer::create(const Properties& properties)
auto result = std::shared_ptr<Framebuffer>(new Framebuffer(properties));
if (!properties.renderToScreen) {
result->m_id = UINT_MAX;
glGenFramebuffers(1, &result->m_id);
}
result->createTextures();
return result;

Loading…
Cancel
Save