- Timestamp:
- 04/13/09 22:01:56 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/App/Demos/Vis/FriendlyCulling/src/DeferredRenderer.cpp
r3347 r3349 432 432 mDownSampleFbo->AddColorBuffer(ColorBufferObject::RGB_FLOAT_16, ColorBufferObject::WRAP_CLAMP_TO_EDGE, ColorBufferObject::FILTER_LINEAR); 433 433 434 435 434 for (int i = 0; i < 2; ++ i) 436 435 { … … 822 821 // read the second buffer, write to the first buffer 823 822 mIllumFbo->Bind(); 824 glDrawBuffers( 1, mrt + mIllumFboIndex);823 glDrawBuffers(2, mrt + mIllumFboIndex); 825 824 826 825 int i = 0; … … 929 928 930 929 // the neighbouring texels 931 constfloat xOffs = 1.0f / fbo->GetWidth();932 constfloat yOffs = 1.0f / fbo->GetHeight();930 float xOffs = 1.0f / fbo->GetWidth(); 931 float yOffs = 1.0f / fbo->GetHeight(); 933 932 934 933 sCgAntiAliasingProgram->SetTexture(0, colorsTex); … … 1383 1382 gluOrtho2D(0, 1, 0, 1); 1384 1383 1384 1385 1385 glMatrixMode(GL_MODELVIEW); 1386 1386 glPushMatrix(); 1387 1387 glLoadIdentity(); 1388 1388 1389 1389 1390 glPushAttrib(GL_VIEWPORT_BIT);
Note: See TracChangeset
for help on using the changeset viewer.