Ignore:
Timestamp:
08/25/08 20:20:42 (16 years ago)
Author:
mattausch
Message:

bug: downsampling of positions does not work

File:
1 edited

Legend:

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

    r2862 r2866  
    168168                        glTexEnvi(GL_TEXTURE_ENV, GL_TEXTURE_ENV_MODE, GL_MODULATE); 
    169169 
    170                         glTexImage2D(GL_TEXTURE_2D, 0, depthFormat, w, h, 0, GL_DEPTH_COMPONENT, GL_FLOAT, NULL); 
     170                        glTexImage2D(GL_TEXTURE_2D, 0, depthFormat, mWidth, mHeight, 0, GL_DEPTH_COMPONENT, GL_FLOAT, NULL); 
    171171 
    172172                        glFramebufferTexture2DEXT(GL_FRAMEBUFFER_EXT, GL_DEPTH_ATTACHMENT_EXT, GL_TEXTURE_2D, mDepthTexId, 0); 
     
    178178 
    179179 
    180 int FrameBufferObject::AddColorBuffer(ColorBufferObject::FORMAT col,  
     180int FrameBufferObject::AddColorBuffer(int w, int h, 
     181                                                                          ColorBufferObject::FORMAT col,  
    181182                                                                          ColorBufferObject::WRAP_TYPE wrapType,  
    182183                                                                          ColorBufferObject::FILTER_TYPE filterType,  
     
    190191        int idx = (int)mColorBuffers.size(); 
    191192        ColorBufferObject *colorBuf =  
    192                 new ColorBufferObject(mWidth, mHeight, col, wrapType, filterType, useMipMap, useMultiSampling, idx); 
     193                new ColorBufferObject(w, h, col, wrapType, filterType, useMipMap, useMultiSampling, idx); 
    193194 
    194195        mColorBuffers.push_back(colorBuf); 
Note: See TracChangeset for help on using the changeset viewer.