Ignore:
Timestamp:
08/22/08 13:20:06 (16 years ago)
Author:
mattausch
Message:

cleaned up code

File:
1 edited

Legend:

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

    r2859 r2861  
    3535 
    3636 
     37DeferredShader::~DeferredShader() 
     38{ 
     39        if (sCgDeferredProgram) 
     40                cgDestroyProgram(sCgDeferredProgram); 
     41} 
     42 
     43 
    3744void DeferredShader::Init(CGcontext context) 
    3845{ 
     
    6572void DeferredShader::Render(FrameBufferObject *fbo) 
    6673{ 
    67         GLuint positionsTex = fbo->GetColorBuffer(0)->GetTexture(); 
     74        FrameBufferObject::Release(); 
     75 
    6876        GLuint colorsTex = fbo->GetColorBuffer(0)->GetTexture(); 
    69         GLuint normalsTex = fbo->GetColorBuffer(0)->GetTexture(); 
     77        GLuint positionsTex = fbo->GetColorBuffer(1)->GetTexture(); 
     78        GLuint normalsTex = fbo->GetColorBuffer(2)->GetTexture(); 
    7079 
    7180        glPushAttrib(GL_VIEWPORT_BIT); 
     
    103112         
    104113        glColor3f(1.0f, 1.0f, 1.0f); 
    105  
     114         
    106115        glBegin(GL_QUADS); 
    107116 
Note: See TracChangeset for help on using the changeset viewer.