Commit 14e068ff authored by Sylvain Thery's avatar Sylvain Thery

bug correction lineWidth and poinSize are confused: no more

parent df5f5b4b
......@@ -63,6 +63,7 @@ protected:
std::vector<Geom::Vec3f> m_dataCol;
std::vector<PrimParam> m_begins;
float m_currentWidth;
float m_currentSize;
GLenum m_compile;
Utils::ShaderColorPerVertex* m_shader;
......
......@@ -69,12 +69,15 @@ void Drawer::lineWidth(float lw)
void Drawer::pointSize(float ps)
{
m_currentWidth = ps;
m_currentSize = ps;
}
void Drawer::begin(GLenum mode)
{
m_begins.push_back(PrimParam(m_dataPos.size(), mode, m_currentWidth));
if (mode == GL_POINTS)
m_begins.push_back(PrimParam(m_dataPos.size(), mode, m_currentSize));
else
m_begins.push_back(PrimParam(m_dataPos.size(), mode, m_currentWidth));
}
void Drawer::end()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment