Ignore:
Timestamp:
01/17/08 23:56:46 (17 years ago)
Author:
bittner
Message:

occlusion query bugfix

File:
1 edited

Legend:

Unmodified
Added
Removed
  • GTP/trunk/Lib/Vis/Preprocessing/src/GlRenderer.cpp

    r2611 r2612  
    13501350 
    13511351        glTexImage2D(GL_TEXTURE_2D, 0, GL_DEPTH_COMPONENT, depthMapSize,  
    1352                 depthMapSize, 0, GL_DEPTH_COMPONENT, GL_UNSIGNED_BYTE, NULL); 
     1352                                 depthMapSize, 0, GL_DEPTH_COMPONENT, GL_UNSIGNED_BYTE, NULL); 
    13531353        glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_NEAREST); 
    13541354        glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_NEAREST); 
     
    13931393 
    13941394#endif 
    1395  
    13961395#endif 
    13971396        DoneCurrent(); 
     
    14141413 
    14151414        bool result = GlRenderer::ValidViewPoint(); 
    1416  
     1415         
    14171416        DoneCurrent(); 
    14181417         
     
    14431442          if (!ValidViewPoint()) 
    14441443                mPvsErrorBuffer[i].mError = -1.0f; 
    1445  
     1444           
    14461445          // manualy corrected view point 
    14471446          if (mFrame == 5105) 
     
    15941593        glEnable( GL_CULL_FACE ); 
    15951594 
    1596         //  int wait = 0; 
    1597         //  while (!query.ResultAvailable()) { 
    1598         //      wait++; 
    1599         //  } 
     1595        //      int wait = 0; 
     1596        //      while (!query->ResultAvailable()) { 
     1597        //        wait++; 
     1598        //      } 
    16001599 
    16011600        // reenable other state 
     
    16031602        //  cout<<"VV4 "; 
    16041603 
    1605         //cout<<"count: " << pixelCount<<endl; 
    16061604 
    16071605        if (pixelCount > 0) 
Note: See TracChangeset for help on using the changeset viewer.