From 01625f79848db2e10aa37fa7de2caa88cc6b26db Mon Sep 17 00:00:00 2001 From: apo Date: Fri, 16 Dec 2005 16:50:02 +0000 Subject: [PATCH] To avoid compilation errors --- src/PIPELINE/VISU_OpenGLPointSpriteMapper.cxx | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) 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; -- 2.39.2