src/glrenderer.cpp

changeset 1391
5fa4bf1fc781
parent 1376
83dd6cbd7f1a
child 1393
f0fe7ea82b81
--- a/src/glrenderer.cpp	Wed May 30 22:31:06 2018 +0300
+++ b/src/glrenderer.cpp	Mon Jun 04 23:12:40 2018 +0300
@@ -247,6 +247,12 @@
 void GLRenderer::initializeGL()
 {
 	initializeOpenGLFunctions();
+
+	if (glGetError() != GL_NO_ERROR)
+	{
+		abort();
+	}
+
 	setBackground();
 	glLineWidth (config::lineThickness());
 	glLineStipple (1, 0x6666);

mercurial