src/glRenderer.cc

changeset 816
9adb822de7b9
parent 815
efe34366e56a
child 818
748ba8818af8
--- a/src/glRenderer.cc	Sun Jun 29 17:06:21 2014 +0300
+++ b/src/glRenderer.cc	Mon Jun 30 05:52:10 2014 +0300
@@ -484,7 +484,7 @@
 void GLRenderer::drawVBOs (EVBOSurface surface, EVBOComplement colors, GLenum type)
 {
 	// Filter this through some configuration options
-	if (((surface == VBOSF_Quads || surface == VBOSF_Triangles) && cfg::drawSurfaces == false) ||
+	if ((eq (surface, VBOSF_Quads, VBOSF_Triangles) && cfg::drawSurfaces == false) ||
 		(surface == VBOSF_Lines && cfg::drawEdgeLines == false) ||
 		(surface == VBOSF_CondLines && cfg::drawConditionalLines == false))
 	{

mercurial