Commit d48de63b authored by Frédéric Larue's avatar Frédéric Larue

Minor modifications in the VBOBuilder class.

parent 02efcff7
......@@ -440,7 +440,10 @@ namespace GPU
m_Usage( usage ),
m_TexCoordsDefined( false ),
m_NormalsDefined( false ),
m_ColorsDefined( false )
m_ColorsDefined( false ),
m_CurrentTexCoords( 0.0f, 0.0f, 0.0f, 1.0f ),
m_CurrentNormal( 0.0f, 0.0f, 0.0f ),
m_CurrentColor( 0.0f, 0.0f, 0.0f, 1.0f )
{}
inline void SetVertexAttribName ( const std::string &name ) { m_VertexAttribName = name; }
......@@ -454,7 +457,6 @@ namespace GPU
}
inline void End()
{
assert( m_PrimitiveType == GL_QUADS );
assert( !m_VertexAttribName.empty() );
m_VBO.AddAttrib( m_VertexAttribName, 4, GL_FLOAT )->LoadData( m_Usage, m_Vertices );
......
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