mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-07-15 08:34:40 +00:00
allow "null surfaces" to register mResolveTargets to at least attempt to gen mips
This commit is contained in:
parent
022f8d1732
commit
36c906a72d
1 changed files with 2 additions and 5 deletions
|
|
@ -134,16 +134,13 @@ void GFXD3D11TextureTarget::attachTexture( RenderSlot slot, GFXTextureObject *te
|
||||||
mTargets[slot]->AddRef();
|
mTargets[slot]->AddRef();
|
||||||
mTargetViews[slot] = d3dto->getRTView();
|
mTargetViews[slot] = d3dto->getRTView();
|
||||||
mTargetViews[slot]->AddRef();
|
mTargetViews[slot]->AddRef();
|
||||||
|
mResolveTargets[slot] = d3dto;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
mTargets[slot] = d3dto->getSurface();
|
mTargets[slot] = d3dto->getSurface();
|
||||||
mTargets[slot]->AddRef();
|
mTargets[slot]->AddRef();
|
||||||
mTargetViews[slot]->AddRef();
|
mTargetViews[slot]->AddRef();
|
||||||
// Only assign resolve target if d3dto has a surface to give us.
|
|
||||||
//
|
|
||||||
// That usually means there is an MSAA target involved, which is why
|
|
||||||
// the resolve is needed to get the data out of the target.
|
|
||||||
mResolveTargets[slot] = d3dto;
|
mResolveTargets[slot] = d3dto;
|
||||||
|
|
||||||
if ( tex && slot == Color0 )
|
if ( tex && slot == Color0 )
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue