<commit_before>#if M_MORDA_RENDER == M_MORDA_RENDER_OPENGLES
#	include <GLES2/gl2.h>
#else
#	include <GL/glew.h>
#endif

#include <ting/Exc.hpp>
#include <ting/Void.hpp>
#include <bits/unique_ptr.h>
#include <ting/PoolStored.hpp>
#include <ting/Buffer.hpp>

#include "../Exc.hpp"

using namespace morda;

namespace{



inline static void AssertOpenGLNoError(){
#ifdef DEBUG
	GLenum error = glGetError();
	switch(error){
		case GL_NO_ERROR:
			return;
		case GL_INVALID_ENUM:
			ASSERT_INFO(false, "OpenGL error: GL_INVALID_ENUM")<commit_msg>stuff<commit_after>#if M_MORDA_RENDER == M_MORDA_RENDER_OPENGLES
#	include <GLES2/gl2.h>
#else
#	include <GL/glew.h>
#endif

#include <memory>

#include <ting/Exc.hpp>
#include <ting/Void.hpp>
#include <ting/PoolStored.hpp>
#include <ting/Buffer.hpp>

#include "../Exc.hpp"

using namespace morda;

namespace{



inline static void AssertOpenGLNoError(){
#ifdef DEBUG
	GLenum error = glGetError();
	switch(error){
		case GL_NO_ERROR:
			return;
		case GL_INVALID_ENUM:
			ASSERT_INFO(false, "OpenGL error: GL_INVALID_ENUM")
{'fraction_non_alphanumeric': 0.13345864661654136, 'fraction_numerical': 0.0037593984962406013, 'mean_word_length': 5.339285714285714, 'pattern_counts': {'":': 0, '<': 17, '<?xml version=': 0, '>': 17, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6594148', 'n_tokens_mistral': 443, 'n_tokens_neox': 431, 'n_words': 87}