Ignore:
Timestamp:
04/13/09 21:44:00 (15 years ago)
Author:
mattausch
Message:

1 rendertarget not working perfectly

File:
1 edited

Legend:

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

    r3345 r3347  
    432432        mDownSampleFbo->AddColorBuffer(ColorBufferObject::RGB_FLOAT_16, ColorBufferObject::WRAP_CLAMP_TO_EDGE, ColorBufferObject::FILTER_LINEAR); 
    433433 
     434 
    434435        for (int i = 0; i < 2; ++ i) 
    435436        { 
     
    928929 
    929930        // the neighbouring texels 
    930         float xOffs = 1.0f / fbo->GetWidth(); 
    931         float yOffs = 1.0f / fbo->GetHeight(); 
     931        const float xOffs = 1.0f / fbo->GetWidth(); 
     932        const float yOffs = 1.0f / fbo->GetHeight(); 
    932933 
    933934        sCgAntiAliasingProgram->SetTexture(0, colorsTex); 
     
    13821383        gluOrtho2D(0, 1, 0, 1); 
    13831384 
    1384  
    13851385        glMatrixMode(GL_MODELVIEW); 
    13861386        glPushMatrix(); 
    13871387        glLoadIdentity(); 
    1388  
    13891388         
    13901389        glPushAttrib(GL_VIEWPORT_BIT); 
Note: See TracChangeset for help on using the changeset viewer.