Respect MSAA resolve when downcasting from HDR format. Refs #83

* This means saving to png, jpg, etc will now correctly either select the
  chosen sample, or resolve samples down before returning the data.
This commit is contained in:
baldurk committed 2014-11-28 22:52:49 +00:00
1 parent 4de6080b06
commit 696eddaf22
1 file changed
+1 -1
+1 -1
View File
@@ -2104,7 +2104,7 @@ byte *D3D11DebugManager::GetTextureData(ResourceId id, uint32_t arrayIdx, uint32
texDisplay.overlay = eTexOverlay_None;
texDisplay.FlipY = false;
texDisplay.mip = mip;
texDisplay.sampleIdx = 0;
texDisplay.sampleIdx = resolve ? ~0U : arrayIdx;
texDisplay.CustomShader = ResourceId();
texDisplay.sliceFace = arrayIdx;
texDisplay.rangemin = blackPoint;