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) {