Do a default inversion of Y co-ordinates on GL and invert w/ height-1

This commit is contained in:
baldurk
2015-02-09 11:50:11 +00:00
parent a282b68c58
commit f64e2ce1d1
+3 -1
View File
@@ -1408,8 +1408,10 @@ namespace renderdocui.Windows
}
int y = m_CurHoverPixel.Y >> (int)m_TexDisplay.mip;
if (m_Core.APIProps.pipelineType == APIPipelineStateType.OpenGL)
y = (int)(tex.height-1) - y;
if (m_TexDisplay.FlipY)
y = (int)tex.height - y;
y = (int)(tex.height-1) - y;
int x = m_CurHoverPixel.X >> (int)m_TexDisplay.mip;
float invWidth = tex.width > 0 ? 1.0f / tex.width : 0.0f;