Commit 7f8aceab authored by Jan Möbius's avatar Jan Möbius
Browse files

Moved to Vertex program point size

git-svn-id: http://www.openflipper.org/svnrepo/OpenFlipper/branches/Free@12580 383ad7c9-94d9-4d36-a494-682f7c89f535
parent d7ce6bf6
......@@ -93,8 +93,8 @@ void SplatCloudNode::draw( GLState &_state, const DrawModes::DrawMode &_drawMode
{
// check if drawmode is valid
if( _drawMode != splatsDrawMode_ &&
_drawMode != dotsDrawMode_ &&
_drawMode != pointsDrawMode_ )
_drawMode != dotsDrawMode_ &&
_drawMode != pointsDrawMode_ )
{
return;
}
......@@ -126,14 +126,14 @@ void SplatCloudNode::draw( GLState &_state, const DrawModes::DrawMode &_drawMode
// enable "pointsize by program" depending on current drawmode
if( _drawMode != pointsDrawMode_ )
glEnable( GL_PROGRAM_POINT_SIZE );
glEnable( GL_VERTEX_PROGRAM_POINT_SIZE );
// draw as points
glDrawArrays( GL_POINTS, 0, numPoints() );
// disable "pointsize by program" if it was enabled
if( _drawMode != pointsDrawMode_ )
glDisable( GL_PROGRAM_POINT_SIZE );
glDisable( GL_VERTEX_PROGRAM_POINT_SIZE );
// disable arrays
glDisableClientState( GL_VERTEX_ARRAY );
......
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