Subversion Repository Public Repository

Divide-Framework

This repository has no backups
This repository's network speed is throttled to 100KB/sec

Diff Revisions 908 vs 909 for /trunk/Source Code/Rendering/PostFX/CustomOperators/DoFPreRenderOperator.cpp

Diff revisions: vs.
  @@ -14,8 +14,9 @@
14 14 DoFPreRenderOperator::DoFPreRenderOperator(GFXDevice& context, PreRenderBatch& parent, ResourceCache& cache)
15 15 : PreRenderOperator(context, parent, cache, FilterType::FILTER_DEPTH_OF_FIELD)
16 16 {
17 - _samplerCopy = _context.allocateRT("DoF");
18 - _samplerCopy._rt->addAttachment(parent.inputRT().getDescriptor(RTAttachment::Type::Colour, 0), RTAttachment::Type::Colour, 0);
17 + _samplerCopy = _context.allocateRT(vec2<U16>(parent.inputRT().getWidth(), parent.inputRT().getHeight()), "DoF");
18 + _samplerCopy._rt->addAttachment(parent.inputRT().getAttachment(RTAttachment::Type::Colour, 0), RTAttachment::Type::Colour, 0);
19 + _samplerCopy._rt->create();
19 20
20 21 ResourceDescriptor dof("DepthOfField");
21 22 dof.setThreadedLoading(false);