bool InitializeBufferExtensions()
{
-
vglShaderSourceARB = (PFNGLSHADERSOURCEARBPROC)GL_GetProcAddress( "glShaderSourceARB" );
if( !vglShaderSourceARB )
return false;
this->MarkerScale = VTK::MS_NONE;
this->MarkerId = 0;
this->BallEnabled = false;
+ this->VertexProgram = 0;
}
//-----------------------------------------------------------------------------
this->InitTextures();
}
- if(!this->BallEnabled) {
+ if(!this->BallEnabled || this->ExtensionsInitialized != ES_Ok) {
MAPPER_SUPERCLASS::RenderPiece( ren, act );
if( isUsePointSprites )
this->CleanupPointSprites();
vglDeleteBuffersARB( 2, &aDiamsID );
}
- } else { // there are no extensions
+ } else { // there are no extensions
glColorPointer( 4, GL_FLOAT, sizeof(VTK::TVertex), aVertexArr );
glVertexPointer( 3, GL_FLOAT, sizeof(VTK::TVertex),
(void*)((GLfloat*)((void*)(aVertexArr)) + 4));