gl_pointCoord requires GL_POINT_SPRITE on OS X

This commit is contained in:
Justin R. Miller
2014-02-20 15:53:17 -08:00
parent cbf96ba1c6
commit 9e762f91eb

View File

@@ -410,6 +410,7 @@ void Painter::renderPoint(PointBucket& bucket, const std::string& layer_name, co
pointShader->setSize(pointSize);
#else
glPointSize(pointSize);
glEnable(GL_POINT_SPRITE);
#endif
pointShader->setPointTopLeft({{ imagePos.tl.x, imagePos.tl.y }});
pointShader->setPointBottomRight({{ imagePos.br.x, imagePos.br.y }});