- Timestamp:
- 08/26/08 16:27:11 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/App/Demos/Vis/FriendlyCulling/src/DeferredShader.cpp
r2867 r2868 55 55 void DeferredShader::Init(CGcontext context) 56 56 { 57 58 57 sCgDeferredProgram = 59 58 cgCreateProgramFromFile(context, … … 112 111 GLuint normalsTex = fbo->GetColorBuffer(2)->GetTexture(); 113 112 114 if (1)115 {116 glEnable(GL_TEXTURE_2D);117 // generate mip map levels for position texture118 glBindTexture(GL_TEXTURE_2D, colorsTex);119 glGenerateMipmapEXT(GL_TEXTURE_2D);120 }121 122 // read the second buffer, write to the first buffer123 113 mFbo->Bind(); 124 114
Note: See TracChangeset
for help on using the changeset viewer.