Fix immediate mode vertex submission

This commit is contained in:
wheremyfoodat 2023-08-12 17:52:50 +03:00
parent 0f5c41cd69
commit 0f973a4ae4
2 changed files with 13 additions and 9 deletions

View file

@ -135,7 +135,9 @@ void RendererGL::initGraphicsContext(SDL_Window* window) {
screenFramebuffer.createWithDrawTexture(screenTexture);
screenFramebuffer.bind(OpenGL::DrawAndReadFramebuffer);
if (glCheckFramebufferStatus(GL_FRAMEBUFFER) != GL_FRAMEBUFFER_COMPLETE) Helpers::panic("Incomplete framebuffer");
if (glCheckFramebufferStatus(GL_FRAMEBUFFER) != GL_FRAMEBUFFER_COMPLETE) {
Helpers::panic("Incomplete framebuffer");
}
// TODO: This should not clear the framebuffer contents. It should load them from VRAM.
GLint oldViewport[4];