From d16144eee4fc3a8911656d8ce819c5d7861ad124 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tomasz=20Kapu=C5=9Bci=C5=84ski?= Date: Thu, 3 Feb 2022 18:55:46 +0100 Subject: [PATCH] Added missing include and removed debugging calls --- src/graphics/opengl/gl33renderers.cpp | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/graphics/opengl/gl33renderers.cpp b/src/graphics/opengl/gl33renderers.cpp index 790cb8f3..8565bac9 100644 --- a/src/graphics/opengl/gl33renderers.cpp +++ b/src/graphics/opengl/gl33renderers.cpp @@ -12,6 +12,8 @@ #include #include +#include + namespace Gfx { @@ -166,8 +168,6 @@ void CGL33UIRenderer::DrawPrimitive(PrimitiveType type, int count, const Vertex2 Vertex2D* CGL33UIRenderer::BeginPrimitive(PrimitiveType type, int count) { - ClearGLErrors(); - glBindVertexArray(m_bufferVAO); glBindBuffer(GL_ARRAY_BUFFER, m_bufferVBO); @@ -203,9 +203,6 @@ Vertex2D* CGL33UIRenderer::BeginPrimitive(PrimitiveType type, int count) m_type = type; m_count = count; - ClearGLErrors(); - CheckGLErrors(); - // Mapping failed, use backup buffer if (ptr == nullptr) {