Ignore:
Timestamp:
02/25/09 15:51:45 (15 years ago)
Author:
mattausch
Message:

probably found error with texture

File:
1 edited

Legend:

Unmodified
Added
Removed
  • GTP/trunk/App/Demos/Vis/FriendlyCulling/src/SceneQuery.cpp

    r3219 r3327  
    105105 
    106106SceneQuery::SceneQuery(const AxisAlignedBox3 &sceneBox,  
    107                                            RenderTraverser *renderer, RenderState *state):  
    108 mSceneBox(sceneBox), mDepth(NULL), mRenderState(state) 
     107                                           RenderTraverser *renderer,  
     108                                           RenderState *state):  
     109mSceneBox(sceneBox),  
     110mDepth(NULL),  
     111mRenderState(state) 
    109112{ 
    110113        Prepare(renderer); 
     
    118121 
    119122        const float d = mDepth[px + py * texHeight]; 
    120  
    121123        static float depth = d; 
    122124 
     
    147149 
    148150        FrameBufferObject *fbo = new FrameBufferObject(texWidth, texHeight, FrameBufferObject::DEPTH_32, true); 
     151 
    149152        fbo->AddColorBuffer(ColorBufferObject::RGBA_UBYTE,  
    150153                                ColorBufferObject::WRAP_CLAMP_TO_EDGE,  
     
    177180        orthoCam->SetupViewProjection(); 
    178181 
    179         //glOrtho(xlen, -xlen, ylen, -ylen, 0.0f, mSceneBox.Size().z);  
    180182        glMatrixMode(GL_MODELVIEW); 
    181         //orthoCam->SetupCameraView(); 
    182183 
    183184        mDepth = new float[texHeight * texWidth]; 
Note: See TracChangeset for help on using the changeset viewer.