remove GL_POLYGON_SMOOTH because it causes rendering artifacts

Thu, 11 Jan 2018 15:41:58 +0200

author
Santeri Piippo
date
Thu, 11 Jan 2018 15:41:58 +0200
changeset 1233
ff8561fc088f
parent 1232
7eb8b59577d0
child 1253
468a32ae8100

remove GL_POLYGON_SMOOTH because it causes rendering artifacts

src/glRenderer.cpp file | annotate | diff | comparison | revisions
--- a/src/glRenderer.cpp	Thu Jan 11 15:30:30 2018 +0200
+++ b/src/glRenderer.cpp	Thu Jan 11 15:41:58 2018 +0200
@@ -176,14 +176,11 @@
 	if (config->antiAliasedLines())
 	{
 		glEnable(GL_LINE_SMOOTH);
-		glEnable(GL_POLYGON_SMOOTH);
 		glHint(GL_LINE_SMOOTH_HINT, GL_NICEST);
-		glHint(GL_POLYGON_SMOOTH_HINT, GL_NICEST);
 	}
 	else
 	{
 		glDisable(GL_LINE_SMOOTH);
-		glDisable(GL_POLYGON_SMOOTH);
 	}
 }
 

mercurial