From: apo Date: Fri, 16 Dec 2005 16:50:02 +0000 (+0000) Subject: To avoid compilation errors X-Git-Tag: TG-D5-38-2003_D2005-20-12~14 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=01625f79848db2e10aa37fa7de2caa88cc6b26db;p=modules%2Fvisu.git To avoid compilation errors --- diff --git a/src/PIPELINE/VISU_OpenGLPointSpriteMapper.cxx b/src/PIPELINE/VISU_OpenGLPointSpriteMapper.cxx index f52a7bc6..d8eb9e8a 100755 --- a/src/PIPELINE/VISU_OpenGLPointSpriteMapper.cxx +++ b/src/PIPELINE/VISU_OpenGLPointSpriteMapper.cxx @@ -154,6 +154,8 @@ int InitializeARB() vglBindBufferARB = (PFNGLBINDBUFFERARBPROC)dlsym( OpenGLLibrary, "glBindBufferARB" ); vglBufferDataARB = (PFNGLBUFFERDATAARBPROC)dlsym( OpenGLLibrary, "glBufferDataARB" ); vglDeleteBuffersARB = (PFNGLDELETEBUFFERSARBPROC)dlsym( OpenGLLibrary, "glDeleteBuffersARB" ); + + return 1; }; static int IsARBInitialized = InitializeARB(); @@ -753,11 +755,6 @@ void VISU_OpenGLPointSpriteMapper::DrawPoints(vtkPoints *thePoints, float* aPropertyColor = theActor->GetProperty()->GetColor(); float aColor[3] = {aPropertyColor[0], aPropertyColor[1], aPropertyColor[2]}; - int aRed = int(255*aColor[0]), aGreen = int(255*aColor[1]), aBlue = int(255*aColor[1]); - float aHue = ComputeHue( aRed, aGreen, aBlue ); - - float aViewToDisplay = ViewToDisplay( theRenderer ); - float aSize = this->PointSpriteSize; unsigned long i = 0; vtkIdType *pts = 0; @@ -832,7 +829,6 @@ int VISU_OpenGLPointSpriteMapper::Draw(vtkRenderer *aren, vtkActor *act) vtkFloatArray *alpha = NULL; vtkPolyData *input = this->GetInput(); vtkPoints *points; - int tDim; int noAbort = 1; int cellScalars = 0; vtkIdType cellNum = 0;