mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-05 17:40:39 +00:00
Don't autofit if no texture is viewed (e.g. if a buffer is up)
* This fixes a bug from a crash upload
This commit is contained in:
@@ -3073,6 +3073,10 @@ namespace renderdocui.Windows
|
||||
|
||||
private void AutoFitRange()
|
||||
{
|
||||
// no log loaded or buffer/empty texture currently being viewed - don't autofit
|
||||
if (!m_Core.LogLoaded || CurrentTexture == null)
|
||||
return;
|
||||
|
||||
m_Core.Renderer.BeginInvoke((ReplayRenderer r) =>
|
||||
{
|
||||
PixelValue min, max;
|
||||
|
||||
Reference in New Issue
Block a user