Catching up with Lindies part 2
This commit is contained in:
@@ -884,10 +884,11 @@ void LLPipeline::createGLBuffers()
|
||||
|
||||
if (LLPipeline::sWaterReflections)
|
||||
{ //water reflection texture
|
||||
U32 res = (U32) gSavedSettings.getS32("RenderWaterRefResolution");
|
||||
U32 res = (U32) llmax(gSavedSettings.getS32("RenderWaterRefResolution"), 512);
|
||||
|
||||
mWaterRef.allocate(res,res,GL_RGBA,TRUE,FALSE);
|
||||
mWaterDis.allocate(res,res,GL_RGBA,TRUE,FALSE);
|
||||
//always use FBO for mWaterDis so it can be used for avatar texture bakes
|
||||
mWaterDis.allocate(res,res,GL_RGBA,TRUE,FALSE,LLTexUnit::TT_TEXTURE, true);
|
||||
}
|
||||
|
||||
|
||||
@@ -6517,8 +6518,8 @@ void LLPipeline::renderBloom(BOOL for_snapshot, F32 zoom_factor, int subfield, b
|
||||
mDeferredLight.flush();
|
||||
}
|
||||
|
||||
U32 dof_width = mScreen.getWidth()*CameraDoFResScale;
|
||||
U32 dof_height = mScreen.getHeight()*CameraDoFResScale;
|
||||
U32 dof_width = (U32) (mScreen.getWidth()*CameraDoFResScale);
|
||||
U32 dof_height = (U32) (mScreen.getHeight()*CameraDoFResScale);
|
||||
|
||||
{ //perform DoF sampling at half-res (preserve alpha channel)
|
||||
mScreen.bindTarget();
|
||||
|
||||
Reference in New Issue
Block a user