ref: 739134e68a978edda2b7b8f60cb07886073cffe6
parent: 4bc80a288d8ca7eae6c9421febc7ceaf11e9a2af
author: Clownacy <Clownacy@users.noreply.github.com>
date: Sun Aug 25 12:50:06 EDT 2019
Shut up a runtime error in the OpenGL renderer
--- a/src/Backends/Rendering/OpenGL3.cpp
+++ b/src/Backends/Rendering/OpenGL3.cpp
@@ -348,6 +348,10 @@
framebuffer.width = window_width;
framebuffer.height = window_height;
+ glFramebufferTexture2D(GL_FRAMEBUFFER, GL_COLOR_ATTACHMENT0, GL_TEXTURE_2D, framebuffer.texture_id, 0);
+ glViewport(0, 0, framebuffer.width, framebuffer.height);
+
+
return &framebuffer;
}