Fix incorrect use of texture height instead of mip. Refs #300

This commit is contained in:
baldurk
2016-07-11 18:54:22 +02:00
parent 85f4641620
commit e12d789a83
+5 -2
View File
@@ -2000,10 +2000,13 @@ namespace renderdocui.Windows
}
int y = m_CurHoverPixel.Y >> (int)m_TexDisplay.mip;
uint mipHeight = Math.Max(1, tex.height >> (int)m_TexDisplay.mip);
if (m_Core.APIProps.pipelineType == APIPipelineStateType.OpenGL)
y = (int)(tex.height - 1) - y;
y = (int)(mipHeight - 1) - y;
if (m_TexDisplay.FlipY)
y = (int)(tex.height - 1) - y;
y = (int)(mipHeight - 1) - y;
y = Math.Max(0, y);