Ignore:
Timestamp:
04/13/09 22:01:56 (15 years ago)
Author:
mattausch
Message:

changed back to old version

File:
1 edited

Legend:

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

    r3347 r3349  
    432432        mDownSampleFbo->AddColorBuffer(ColorBufferObject::RGB_FLOAT_16, ColorBufferObject::WRAP_CLAMP_TO_EDGE, ColorBufferObject::FILTER_LINEAR); 
    433433 
    434  
    435434        for (int i = 0; i < 2; ++ i) 
    436435        { 
     
    822821        // read the second buffer, write to the first buffer 
    823822        mIllumFbo->Bind(); 
    824         glDrawBuffers(1, mrt + mIllumFboIndex); 
     823        glDrawBuffers(2, mrt + mIllumFboIndex); 
    825824 
    826825        int i = 0; 
     
    929928 
    930929        // the neighbouring texels 
    931         const float xOffs = 1.0f / fbo->GetWidth(); 
    932         const float yOffs = 1.0f / fbo->GetHeight(); 
     930        float xOffs = 1.0f / fbo->GetWidth(); 
     931        float yOffs = 1.0f / fbo->GetHeight(); 
    933932 
    934933        sCgAntiAliasingProgram->SetTexture(0, colorsTex); 
     
    13831382        gluOrtho2D(0, 1, 0, 1); 
    13841383 
     1384 
    13851385        glMatrixMode(GL_MODELVIEW); 
    13861386        glPushMatrix(); 
    13871387        glLoadIdentity(); 
     1388 
    13881389         
    13891390        glPushAttrib(GL_VIEWPORT_BIT); 
Note: See TracChangeset for help on using the changeset viewer.