this->PointSpriteAlphaThreshold = theAlphaThreshold;
}
//-----------------------------------------------------------------------------
-void VISU_OpenGLPointSpriteMapper::InitExtensions()
+bool VISU_OpenGLPointSpriteMapper::InitExtensions()
{
char* ext = (char*)glGetString( GL_EXTENSIONS );
//cout << "OpenGL extensions : " << ext << endl;
this->UseOpenGLMapper = true;
- return;
+ return false;
}
if( this->UseShader )
this->InitShader();
this->ExtensionsInitialized = 1;
+ return true;
}
//-----------------------------------------------------------------------------
if( !this->ExtensionsInitialized && isUseThisMapper )
{
- this->InitExtensions();
- //act->GetProperty()->SetPointSize( 10.0f );
+ if( !this->InitExtensions() )
+ return;
}
if( !isUseThisMapper )
{
- //cout << "Using OpenGLMapper" << endl;
MAPPER_SUPERCLASS::RenderPiece( ren, act );
return;
}