mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-08-26 08:26:50 +00:00
Don't pass negative firstMip/firstSlice
* These can be -1 to indicate that all mips/slices are available - so pass 0 in that case.
This commit is contained in:
@@ -2064,7 +2064,9 @@ void TextureViewer::InitResourcePreview(ResourcePreview *prev, BoundResource res
|
||||
if(m_Ctx.GetTexture(res.resourceId))
|
||||
{
|
||||
m_Ctx.Replay().AsyncInvoke([this, winData, res](IReplayController *) {
|
||||
m_Output->AddThumbnail(winData, res.resourceId, res.typeHint, res.firstMip, res.firstSlice);
|
||||
m_Output->AddThumbnail(winData, res.resourceId, res.typeHint,
|
||||
res.firstMip >= 0 ? res.firstMip : 0,
|
||||
res.firstSlice >= 0 ? res.firstSlice : 0);
|
||||
});
|
||||
}
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user