From 4b79787e152497131c16e89ee45b06c8bf76ef47 Mon Sep 17 00:00:00 2001 From: kallaballa Date: Tue, 13 Dec 2022 20:41:29 +0100 Subject: [PATCH] reenable FPS display --- src/common/detail/clglcontext.cpp | 2 +- src/common/util.hpp | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/common/detail/clglcontext.cpp b/src/common/detail/clglcontext.cpp index d8301b891..8f5044c7a 100644 --- a/src/common/detail/clglcontext.cpp +++ b/src/common/detail/clglcontext.cpp @@ -78,7 +78,7 @@ void CLGLContext::begin() { void CLGLContext::end() { GL_CHECK(glBindTexture(GL_TEXTURE_2D, 0)); - GL_CHECK(glFramebufferRenderbuffer(GL_FRAMEBUFFER, GL_DEPTH_STENCIL_ATTACHMENT, GL_RENDERBUFFER, 0)); +// GL_CHECK(glFramebufferRenderbuffer(GL_FRAMEBUFFER, GL_DEPTH_STENCIL_ATTACHMENT, GL_RENDERBUFFER, 0)); GL_CHECK(glBindRenderbuffer(GL_RENDERBUFFER, 0)); GL_CHECK(glBindFramebuffer(GL_FRAMEBUFFER, 0)); //glFlush seems enough but i wanna make sure that there won't be race conditions. diff --git a/src/common/util.hpp b/src/common/util.hpp index a4b6f3f2a..223d8fa0e 100644 --- a/src/common/util.hpp +++ b/src/common/util.hpp @@ -9,6 +9,7 @@ namespace kb { namespace viz2d { +class Viz2D; void gl_check_error(const std::filesystem::path &file, unsigned int line, const char *expression);