From f8a5c86b7acddfb27f8292e7519e0e586e6f9c68 Mon Sep 17 00:00:00 2001 From: kallaballa Date: Sun, 27 Nov 2022 22:20:34 +0100 Subject: [PATCH] gl::push and gl::pop not necessary anymore because we cleanup the GL-state --- src/common/subsystems.hpp | 6 ------ 1 file changed, 6 deletions(-) diff --git a/src/common/subsystems.hpp b/src/common/subsystems.hpp index de243e0ca..39b217fa9 100644 --- a/src/common/subsystems.hpp +++ b/src/common/subsystems.hpp @@ -469,7 +469,6 @@ void clear(const float& r = 0.0f, const float& g = 0.0f, const float& b = 0.0f) void begin() { gl::begin(); -// gl::push(); float w = WIDTH; float h = HEIGHT; @@ -488,13 +487,10 @@ void begin() { void end() { nvgEndFrame(vg); nvgRestore(vg); -// gl::pop(); gl::end(); } void init(bool debug = false) { - gl::push(); - GL_CHECK(glViewport(0, 0, WIDTH, HEIGHT)); GL_CHECK(glEnable(GL_STENCIL_TEST)); GL_CHECK(glStencilMask(~0)); @@ -512,8 +508,6 @@ void init(bool debug = false) { /*nvgCreateFont(vg, "sans-bold", "fonts/DejaVuSans-Bold.ttf"); nvgCreateFont(vg, "sans", "fonts/DejaVuSans.ttf"); */ - - gl::pop(); } } //namespace nvg