]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - EVE/EveDet/AliEveTPCSector3DGL.cxx
fix for Savannah bug #81846
[u/mrichter/AliRoot.git] / EVE / EveDet / AliEveTPCSector3DGL.cxx
index f49e8eb54fa19c9f296b0fd1d6c75c4a3a9fe61a..660785c760f5f76e99d2a47e0552de7d6ea6fae9 100644 (file)
@@ -16,7 +16,6 @@
 #include <TGLRnrCtx.h>
 #include <TGLSelectRecord.h>
 
-
 //______________________________________________________________________________
 //
 // GL renderer for AliEveTPCSector3D.
@@ -30,7 +29,7 @@ AliEveTPCSector3DGL::AliEveTPCSector3DGL() :
 {
   // Constructor.
 
-  // fDLCache = false; // Disable display list.
+  fDLCache = false; // Disable display list.
 }
 
 AliEveTPCSector3DGL::~AliEveTPCSector3DGL()
@@ -104,7 +103,6 @@ void AliEveTPCSector3DGL::DirectDraw(TGLRnrCtx & rnrCtx) const
 
   glPushAttrib(GL_CURRENT_BIT | GL_POINT_BIT | GL_ENABLE_BIT);
   glDisable(GL_LIGHTING);
-  UChar_t col[4];
 
   if(hasData && fSector->fPointSetOn)
   {
@@ -121,8 +119,7 @@ void AliEveTPCSector3DGL::DirectDraw(TGLRnrCtx & rnrCtx) const
       TEvePointSet* ps = psa.GetBin(b);
       if(ps->Size() > 0)
       {
-       TEveUtil::TEveUtil::ColorFromIdx(ps->GetMarkerColor(), col);
-       glColor4ubv(col);
+       TGLUtil::Color(ps->GetMarkerColor());
 
         if (rnrCtx.SecSelection()) glLoadName(b + 1);
        glVertexPointer(3, GL_FLOAT, 0, ps->GetP());
@@ -135,8 +132,7 @@ void AliEveTPCSector3DGL::DirectDraw(TGLRnrCtx & rnrCtx) const
 
   if(fSector->fRnrFrame && ! rnrCtx.SecSelection())
   {
-    TEveUtil::TEveUtil::ColorFromIdx(fSector->fFrameColor, col);
-    glColor4ubv(col);
+    TGLUtil::Color(fSector->fFrameColor);
 
     if(fSector->fRnrInn)
       DrawSegmentFrame(AliEveTPCSectorData::GetInnSeg(),  0, 2);