mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-11-15 10:20:07 +00:00
Fix incorrect use of texture height instead of mip. Refs #300
This commit is contained in:
1 parent
85f4641620
commit
e12d789a83
1 file changed
+5
-2
@@ -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);
|
||||
|
||||
|
||||
Reference in new issue
Block a user